2017-01-21 04:57:07 +08:00
|
|
|
RUN: LLVMFuzzer-EquivalenceATest -run_equivalence_server=EQUIV_TEST & export APID=$!
|
2017-01-24 02:44:40 +08:00
|
|
|
RUN: sleep 3
|
2017-02-01 08:07:47 +08:00
|
|
|
RUN: not LLVMFuzzer-EquivalenceBTest -use_equivalence_server=EQUIV_TEST -max_len=4096 2>&1 | FileCheck %s
|
2017-01-21 04:57:07 +08:00
|
|
|
CHECK: ERROR: libFuzzer: equivalence-mismatch. Sizes: {{.*}}; offset 2
|
|
|
|
CHECK: SUMMARY: libFuzzer: equivalence-mismatch
|
|
|
|
RUN: kill -9 $APID
|
2017-01-28 06:41:30 +08:00
|
|
|
|
|
|
|
|
|
|
|
# Run EquivalenceATest against itself with a small timeout
|
|
|
|
# to stress the signal handling and ensure that shmem doesn't mind
|
|
|
|
# the signals.
|
|
|
|
|
|
|
|
RUN: LLVMFuzzer-EquivalenceATest -timeout=1 -run_equivalence_server=EQUIV_TEST & export APID=$!
|
|
|
|
RUN: sleep 3
|
|
|
|
RUN: LLVMFuzzer-EquivalenceATest -timeout=1 -use_equivalence_server=EQUIV_TEST -runs=500000 2>&1
|
|
|
|
RUN: kill -9 $APID
|