| 1 |
// FIXME: Support sanitizer hooks for memcmp and strcmp need |
| 2 |
// to be implemented in the sanitizer runtime for platforms other |
| 3 |
// than linux |
| 4 |
REQUIRES: linux |
| 5 |
CHECK: BINGO |
| 6 |
Done1000000: Done 1000000 runs in |
| 7 |
|
| 8 |
RUN: not LLVMFuzzer-MemcmpTest -seed=4294967295 -runs=100000 2>&1 | FileCheck %s |
| 9 |
RUN: LLVMFuzzer-MemcmpTest -use_memcmp=0 -seed=4294967295 -runs=1000000 2>&1 | FileCheck %s --check-prefix=Done1000000 |
| 10 |
|
| 11 |
RUN: not LLVMFuzzer-StrncmpTest -seed=2 -runs=100000 2>&1 | FileCheck %s |
| 12 |
RUN: LLVMFuzzer-StrncmpTest -use_memcmp=0 -seed=3 -runs=1000000 2>&1 | FileCheck %s --check-prefix=Done1000000 |
| 13 |
|
| 14 |
RUN: not LLVMFuzzer-StrcmpTest -seed=4 -runs=200000 2>&1 | FileCheck %s |
| 15 |
RUN: LLVMFuzzer-StrcmpTest -use_memcmp=0 -seed=5 -runs=1000000 2>&1 | FileCheck %s --check-prefix=Done1000000 |
| 16 |
|
| 17 |
RUN: not LLVMFuzzer-StrstrTest -seed=6 -runs=200000 2>&1 | FileCheck %s |
| 18 |
RUN: LLVMFuzzer-StrstrTest -use_memmem=0 -seed=7 -runs=1000000 2>&1 | FileCheck %s --check-prefix=Done1000000 |
| 19 |
|
| 20 |
RUN: LLVMFuzzer-RepeatedMemcmp -seed=10 -runs=100000 2>&1 | FileCheck %s --check-prefix=RECOMMENDED_DICT |
| 21 |
RECOMMENDED_DICT:###### Recommended dictionary. ###### |
| 22 |
RECOMMENDED_DICT-DAG: "foo" |
| 23 |
RECOMMENDED_DICT-DAG: "bar" |
| 24 |
RECOMMENDED_DICT:###### End of recommended dictionary. ###### |
| 25 |
|