OSDN Git Service

2a4103f1a38273b5d742a65df00828514c5692ff
[android-x86/external-llvm.git] / lib / Fuzzer / test / minimize_two_crashes.test
1 # Test that the minimizer stops when it sees a differe bug.
2
3 RUN: %cpp_compiler %S/TwoDifferentBugsTest.cpp -o %t-LLVMFuzzer-TwoDifferentBugsTest
4
5 RUN: rm -rf %t && mkdir %t
6 RUN: echo H12345678901234667888090 > %t/long_crash
7 RUN: env ASAN_OPTIONS=dedup_token_length=3 %t-LLVMFuzzer-TwoDifferentBugsTest -seed=1 -minimize_crash=1 %t/long_crash -exact_artifact_path=%t/result 2>&1 | FileCheck %s
8
9 CHECK: DedupToken1: DEDUP_TOKEN: Bar
10 CHECK: DedupToken2: DEDUP_TOKEN: Bar
11 CHECK: DedupToken1: DEDUP_TOKEN: Bar
12 CHECK: DedupToken2: DEDUP_TOKEN: Foo
13 CHECK: CRASH_MIN: mismatch in dedup tokens
14
15 RUN: not  %t-LLVMFuzzer-TwoDifferentBugsTest %t/result 2>&1 | FileCheck %s --check-prefix=VERIFY
16
17 VERIFY: ERROR: AddressSanitizer:
18 VERIFY: in Bar