1# Test that the minimizer stops when it sees a different bug. 2UNSUPPORTED: freebsd 3 4# TODO: Find out why test fails on Darwin with -O2. 5RUN: %cpp_compiler -O0 %S/TwoDifferentBugsTest.cpp -o %t-TwoDifferentBugsTest 6 7RUN: rm -rf %t && mkdir %t 8RUN: echo H12345678901234667888090 > %t/long_crash 9RUN: %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 10 11CHECK: DedupToken1: DEDUP_TOKEN: Bar 12CHECK: DedupToken2: DEDUP_TOKEN: Bar 13CHECK: DedupToken1: DEDUP_TOKEN: Bar 14CHECK: DedupToken2: DEDUP_TOKEN: Foo 15CHECK: CRASH_MIN: mismatch in dedup tokens 16 17RUN: not %run %t-TwoDifferentBugsTest %t/result 2>&1 | FileCheck %s --check-prefix=VERIFY 18 19VERIFY: ERROR: AddressSanitizer: 20VERIFY: in Bar 21