[PATCH] D47271: [libFuzzer] Don't complain about lack of interesting inputs when -runs=0.
Max Moroz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 23 11:14:54 PDT 2018
Dor1s updated this revision to Diff 148255.
Dor1s added a comment.
Remove unnecessary test modification, the default value works as well.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D47271
Files:
lib/fuzzer/FuzzerLoop.cpp
Index: lib/fuzzer/FuzzerLoop.cpp
===================================================================
--- lib/fuzzer/FuzzerLoop.cpp
+++ lib/fuzzer/FuzzerLoop.cpp
@@ -743,7 +743,7 @@
Printf("INFO: %zd/%zd inputs touch the focus function\n",
Corpus.NumInputsThatTouchFocusFunction(), Corpus.size());
- if (Corpus.empty()) {
+ if (Corpus.empty() && Options.MaxNumberOfRuns) {
Printf("ERROR: no interesting inputs were found. "
"Is the code instrumented for coverage? Exiting.\n");
exit(1);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47271.148255.patch
Type: text/x-patch
Size: 529 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180523/b0483b52/attachment.bin>
More information about the llvm-commits
mailing list