1 # Test that the minimizer stops when it sees a differe bug.
3 RUN: %cpp_compiler %S/TwoDifferentBugsTest.cpp -o %t-LLVMFuzzer-TwoDifferentBugsTest
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
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
15 RUN: not %t-LLVMFuzzer-TwoDifferentBugsTest %t/result 2>&1 | FileCheck %s --check-prefix=VERIFY
17 VERIFY: ERROR: AddressSanitizer: