diff options
author | Kostya Serebryany <kcc@google.com> | 2017-08-25 20:09:25 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2017-08-25 20:09:25 +0000 |
commit | 70c68ad58bdc2727782b78eaf06347c77120219e (patch) | |
tree | 12609bd4b3d0ee23f918e3f218d0c8b74d86df89 /test/fuzzer/print-func.test | |
parent | 62ddf6220c3bc9c7ecc53bceec6d4548827a79e3 (diff) |
[libFuzzer] add -print_funcs=1 (on bey default): print newly discovered functions during fuzzing
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@311797 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/fuzzer/print-func.test')
-rw-r--r-- | test/fuzzer/print-func.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/fuzzer/print-func.test b/test/fuzzer/print-func.test new file mode 100644 index 000000000..12d52cb0b --- /dev/null +++ b/test/fuzzer/print-func.test @@ -0,0 +1,10 @@ +RUN: %cpp_compiler %S/PrintFuncTest.cpp -o %t +RUN: %t -seed=1 -runs=100000 2>&1 | FileCheck %s +RUN: %t -seed=1 -runs=100000 -print_funcs=0 2>&1 | FileCheck %s --check-prefix=NO +CHECK: NEW_FUNC: {{.*}} FunctionA +CHECK: NEW_FUNC: {{.*}} FunctionB +CHECK: NEW_FUNC: {{.*}} FunctionC +CHECK: BINGO + +NO-NOT: NEW_FUNC +NO: BINGO |