diff options
| author | Kostya Serebryany <kcc@google.com> | 2019-02-08 21:27:23 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2019-02-08 21:27:23 +0000 |
| commit | f762a11544b77bcb5cbb45e9726562018cd5c8fa (patch) | |
| tree | d9a22b41759cdc51c01d54feeb26a7d1a5a23044 /compiler-rt/lib/fuzzer/tests | |
| parent | 3bf72d7d64b8465acd4f4af1a469d68d9dc86058 (diff) | |
| download | bcm5719-llvm-f762a11544b77bcb5cbb45e9726562018cd5c8fa.tar.gz bcm5719-llvm-f762a11544b77bcb5cbb45e9726562018cd5c8fa.zip | |
[libFuzzer] introduce an experimental mode -fork=1, where fuzzing happens in a subprocess (still running multiple inputs per process), thus making the fuzzing more resilient to timeouts and OOMs. This is just a skeleton of the code, and some associated refactoring, not a fully working feature yet.
llvm-svn: 353570
Diffstat (limited to 'compiler-rt/lib/fuzzer/tests')
| -rw-r--r-- | compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp b/compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp index 16a1fc5cdf0..861eaeda6c5 100644 --- a/compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp +++ b/compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp @@ -647,7 +647,7 @@ static void Merge(const std::string &Input, EXPECT_TRUE(M.Parse(Input, true)); std::stringstream SS; M.PrintSummary(SS); - EXPECT_EQ(NumNewFeatures, M.Merge(&NewFiles)); + EXPECT_EQ(NumNewFeatures, M.Merge({}, &NewFiles)); EXPECT_EQ(M.AllFeatures(), M.ParseSummary(SS)); EQ(NewFiles, Result); } @@ -705,7 +705,7 @@ TEST(Merge, Good) { EQ(M.Files[0].Features, {1, 2, 3}); EQ(M.Files[1].Features, {4, 5, 6}); EQ(M.Files[2].Features, {1, 3, 6}); - EXPECT_EQ(0U, M.Merge(&NewFiles)); + EXPECT_EQ(0U, M.Merge({}, &NewFiles)); EQ(NewFiles, {}); EXPECT_TRUE(M.Parse("3\n1\nA\nB\nC\n" @@ -716,7 +716,7 @@ TEST(Merge, Good) { EQ(M.Files[0].Features, {1, 2, 3}); EQ(M.Files[1].Features, {4, 5, 6}); EQ(M.Files[2].Features, {1, 3, 6}); - EXPECT_EQ(3U, M.Merge(&NewFiles)); + EXPECT_EQ(3U, M.Merge({}, &NewFiles)); EQ(NewFiles, {"B"}); // Same as the above, but with InitialFeatures. |

