Marcos Pividori | 36464dd | 2017-02-01 22:40:45 +0000 | [diff] [blame^] | 1 | REQUIRES: posix |
| 2 | |
Kostya Serebryany | 98d592c | 2017-01-20 20:57:07 +0000 | [diff] [blame] | 3 | RUN: LLVMFuzzer-EquivalenceATest -run_equivalence_server=EQUIV_TEST & export APID=$! |
Kostya Serebryany | 3230b24 | 2017-01-23 18:44:40 +0000 | [diff] [blame] | 4 | RUN: sleep 3 |
Kostya Serebryany | 5c76e3d | 2017-02-01 00:07:47 +0000 | [diff] [blame] | 5 | RUN: not LLVMFuzzer-EquivalenceBTest -use_equivalence_server=EQUIV_TEST -max_len=4096 2>&1 | FileCheck %s |
Kostya Serebryany | 98d592c | 2017-01-20 20:57:07 +0000 | [diff] [blame] | 6 | CHECK: ERROR: libFuzzer: equivalence-mismatch. Sizes: {{.*}}; offset 2 |
| 7 | CHECK: SUMMARY: libFuzzer: equivalence-mismatch |
| 8 | RUN: kill -9 $APID |
Kostya Serebryany | 6d58dbb | 2017-01-27 22:41:30 +0000 | [diff] [blame] | 9 | |
| 10 | |
| 11 | # Run EquivalenceATest against itself with a small timeout |
| 12 | # to stress the signal handling and ensure that shmem doesn't mind |
| 13 | # the signals. |
| 14 | |
| 15 | RUN: LLVMFuzzer-EquivalenceATest -timeout=1 -run_equivalence_server=EQUIV_TEST & export APID=$! |
| 16 | RUN: sleep 3 |
| 17 | RUN: LLVMFuzzer-EquivalenceATest -timeout=1 -use_equivalence_server=EQUIV_TEST -runs=500000 2>&1 |
| 18 | RUN: kill -9 $APID |