lib Fuzzer FreeBSD support
Summary: Patch by David CARLIER
Reviewers: vitalybuka, kcc, dim, emaste, davide, morehouse, george.karpenkov
Reviewed By: morehouse
Subscribers: george.karpenkov, kubamracek, srhines, mgorny, emaste, krytarowski
Differential Revision: https://reviews.llvm.org/D41642
llvm-svn: 322380
2018-01-13 01:15:05 +08:00
|
|
|
UNSUPPORTED: freebsd
|
2017-08-22 07:25:50 +08:00
|
|
|
RUN: %cpp_compiler %S/EquivalenceATest.cpp -o %t-EquivalenceATest
|
|
|
|
RUN: %cpp_compiler %S/EquivalenceBTest.cpp -o %t-EquivalenceBTest
|
|
|
|
|
|
|
|
RUN: %t-EquivalenceATest -run_equivalence_server=EQUIV_TEST & export APID=$!
|
|
|
|
RUN: sleep 3
|
|
|
|
RUN: not %t-EquivalenceBTest -use_equivalence_server=EQUIV_TEST -max_len=4096 2>&1 | FileCheck %s
|
|
|
|
CHECK: ERROR: libFuzzer: equivalence-mismatch. Sizes: {{.*}}; offset 2
|
|
|
|
CHECK: SUMMARY: libFuzzer: equivalence-mismatch
|
|
|
|
RUN: kill -9 $APID
|