xref: /llvm-project/compiler-rt/test/fuzzer/minimize_two_crashes.test (revision 8a86860207f0d5c794a2b8c0b384001710e5d036)
1# Test fail on device (rdar://99981102)
2XFAIL: tvos && !tvossim
3
4# Test that the minimizer stops when it sees a different bug.
5UNSUPPORTED: target={{.*freebsd.*}}
6
7# TODO: Find out why test fails on Darwin with -O2.
8RUN: %cpp_compiler -O0 %S/TwoDifferentBugsTest.cpp -o %t-TwoDifferentBugsTest
9
10RUN: rm -rf %t && mkdir %t
11RUN: echo H12345678901234667888090 > %t/long_crash
12RUN: %env_asan_opts=dedup_token_length=3 %run %t-TwoDifferentBugsTest -seed=1 -minimize_crash=1 %t/long_crash -exact_artifact_path=%t/result 2>&1 | FileCheck %s
13
14CHECK: DedupToken1: DEDUP_TOKEN: Bar
15CHECK: DedupToken2: DEDUP_TOKEN: Bar
16CHECK: DedupToken1: DEDUP_TOKEN: Bar
17CHECK: DedupToken2: DEDUP_TOKEN: Foo
18CHECK: CRASH_MIN: mismatch in dedup tokens
19
20RUN: not  %run %t-TwoDifferentBugsTest %t/result 2>&1 | FileCheck %s --check-prefix=VERIFY
21
22VERIFY: ERROR: AddressSanitizer:
23VERIFY: in Bar
24