diff options
| author | Kostya Serebryany <kcc@google.com> | 2019-02-16 01:23:41 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2019-02-16 01:23:41 +0000 |
| commit | b6ca1e72594a3b79fbe37cd2e70f531c448f3e76 (patch) | |
| tree | 2e87c51af15fc6d3002b37453a341755a1ccc28f /compiler-rt/test | |
| parent | eac7c3ffaf5df3f61e5379cd3f61dc68a8414d67 (diff) | |
| download | bcm5719-llvm-b6ca1e72594a3b79fbe37cd2e70f531c448f3e76.tar.gz bcm5719-llvm-b6ca1e72594a3b79fbe37cd2e70f531c448f3e76.zip | |
[libFuzzer] make len_control less agressive: set the initial max len to the length of the largest seed. This was the original intent, but... Now, with a test, to ensure it stays this way
llvm-svn: 354191
Diffstat (limited to 'compiler-rt/test')
| -rw-r--r-- | compiler-rt/test/fuzzer/len_control.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/compiler-rt/test/fuzzer/len_control.test b/compiler-rt/test/fuzzer/len_control.test new file mode 100644 index 00000000000..189ad36033e --- /dev/null +++ b/compiler-rt/test/fuzzer/len_control.test @@ -0,0 +1,11 @@ +# Tests len_control +RUN: %cpp_compiler %S/SimpleTest.cpp -o %t-SimpleTest + +LIM4: DONE{{.*}}lim: 4 +LIM77: DONE{{.*}}lim: 77 +LIM20: DONE{{.*}}lim: 20 +RUN: %run %t-SimpleTest -runs=1 2>&1 | FileCheck %s --check-prefix=LIM4 +RUN: %run %t-SimpleTest -seed_inputs=%t-SimpleTest -max_len=77 -runs=1 2>&1 | FileCheck %s --check-prefix=LIM77 +RUN: echo -n 01234567890123456789 > %t-temp +RUN: %run %t-SimpleTest -seed_inputs=%t-temp -runs=1 2>&1 | FileCheck %s --check-prefix=LIM20 + |

