diff options
author | David Carlier <devnexen@gmail.com> | 2018-06-12 15:47:58 +0000 |
---|---|---|
committer | David Carlier <devnexen@gmail.com> | 2018-06-12 15:47:58 +0000 |
commit | 1226c02661df81f23197eb1c411486816740d30d (patch) | |
tree | ca3f90db42c354230f8ac12ae4fd2fee91f1c84c /test | |
parent | 415baadc64ff31767576da54575260d0e86ca8c6 (diff) |
[Fuzzer] Afl driver changing iterations handling
Handling differently the iterations with the type limit and eventually an error message.
Reviewers: morehouse, kcc
Reviewed By: morehouse
Differential Revision: https://reviews.llvm.org/D47880
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334510 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/fuzzer/afl-driver.test | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/fuzzer/afl-driver.test b/test/fuzzer/afl-driver.test index 552bafb0b..d617117cd 100644 --- a/test/fuzzer/afl-driver.test +++ b/test/fuzzer/afl-driver.test @@ -21,9 +21,16 @@ CHECK3: __afl_persistent_loop calle, Count = 666 CHECK3: LLVMFuzzerTestOneInput called; Size = 3 -RUN: %run %t-AFLDriverTest %t.file3 2>&1 | FileCheck %s --check-prefix=CHECK4 -CHECK4: LLVMFuzzerTestOneInput called; Size = 3 +RUN: not %run %t-AFLDriverTest %t.file3 2>&1 | FileCheck %s --check-prefix=CHECK4 +CHECK4: WARNING: using the deprecated call style `{{.*}} 1000` +CHECK4: WARNING: iterations invalid `{{.*}}` RUN: %run %t-AFLDriverTest %t.file3 %t.file4 2>&1 | FileCheck %s --check-prefix=CHECK5 CHECK5: LLVMFuzzerTestOneInput called; Size = 3 CHECK5: LLVMFuzzerTestOneInput called; Size = 4 + +RUN: not %run %t-AFLDriverTest < %t.file3 --1 2>&1 | FileCheck %s --check-prefix=CHECK6 +CHECK6: WARNING: iterations invalid `-1` + +RUN: not %run %t-AFLDriverTest < %t.file3 -Invalid 2>&1 | FileCheck %s --check-prefix=CHECK7 +CHECK7: WARNING: iterations invalid `Invalid` |