2017-03-25 08:56:08 +08:00
|
|
|
# Test that the minimizer stops when it sees a differe bug.
|
|
|
|
|
2017-08-05 04:05:25 +08:00
|
|
|
RUN: %cpp_compiler %S/TwoDifferentBugsTest.cpp -o %t-TwoDifferentBugsTest
|
2017-08-05 01:19:45 +08:00
|
|
|
|
2017-03-25 08:56:08 +08:00
|
|
|
RUN: rm -rf %t && mkdir %t
|
|
|
|
RUN: echo H12345678901234667888090 > %t/long_crash
|
2017-08-05 04:05:25 +08:00
|
|
|
RUN: env ASAN_OPTIONS=dedup_token_length=3 %t-TwoDifferentBugsTest -seed=1 -minimize_crash=1 %t/long_crash -exact_artifact_path=%t/result 2>&1 | FileCheck %s
|
2017-03-25 08:56:08 +08:00
|
|
|
|
|
|
|
CHECK: DedupToken1: DEDUP_TOKEN: Bar
|
|
|
|
CHECK: DedupToken2: DEDUP_TOKEN: Bar
|
|
|
|
CHECK: DedupToken1: DEDUP_TOKEN: Bar
|
|
|
|
CHECK: DedupToken2: DEDUP_TOKEN: Foo
|
|
|
|
CHECK: CRASH_MIN: mismatch in dedup tokens
|
|
|
|
|
2017-08-05 04:05:25 +08:00
|
|
|
RUN: not %t-TwoDifferentBugsTest %t/result 2>&1 | FileCheck %s --check-prefix=VERIFY
|
2017-03-25 08:56:08 +08:00
|
|
|
|
|
|
|
VERIFY: ERROR: AddressSanitizer:
|
|
|
|
VERIFY: in Bar
|