Skip to content

Commit

Permalink
fuzz: some more deflaking (envoyproxy#3285)
Browse files Browse the repository at this point in the history
* fuzz: some more deflaking

* Print which test file is being used at info log level to make it
  easier to figure out in CircleCI traces what hangs.

* Zero out some more port values. Maybe it was connecting to some actual
  live ports and hanging during CM init or the like.

Relates to envoyproxy#3248.

Signed-off-by: Harvey Tuch <[email protected]>
  • Loading branch information
htuch authored and ggreenway committed May 4, 2018
1 parent 872728d commit c1c7d57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/fuzz/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ std::vector<std::string> test_corpus_;
class FuzzerCorpusTest : public ::testing::TestWithParam<std::string> {};

TEST_P(FuzzerCorpusTest, RunOneCorpusFile) {
ENVOY_LOG_MISC(debug, "Corpus file: {}", GetParam());
ENVOY_LOG_MISC(info, "Corpus file: {}", GetParam());
const std::string buf = Filesystem::fileReadToEnd(GetParam());
// Everything from here on is the same as under the fuzzer lib.
LLVMFuzzerTestOneInput(reinterpret_cast<const uint8_t*>(buf.c_str()), buf.size());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ static_resources {
hosts {
socket_address {
address: "127.0.0.1"
port_value: 9901
port_value: 0
}
}
hosts {
socket_address {
address: "127.0.0.1"
port_value: 9901
port_value: 0
}
}
circuit_breakers {
Expand Down

0 comments on commit c1c7d57

Please sign in to comment.