1 # Check the output is expected when tests pass but sanitizer fails.
2 # Note that there is only one shard which has only one sub-test. However, the summary
3 # has one pass for the sub-test and one fail for the shard failure due to sanitizer
6 # RUN: not %{lit} -v --order=random %{inputs}/googletest-sanitizer-error > %t.out
7 # FIXME: Temporarily dump test output so we can debug failing tests on
10 # RUN: FileCheck < %t.out %s
15 # CHECK: FAIL: googletest-sanitizer-error :: [[PATH:[Dd]ummy[Ss]ub[Dd]ir/]][[FILE:OneTest\.py]]/0
16 # CHECK: *** TEST 'googletest-sanitizer-error :: [[PATH]][[FILE]]/0{{.*}} FAILED ***
17 # CHECK-NEXT: Script(shard):
19 # CHECK-NEXT: GTEST_OUTPUT=json:{{[^[:space:]]*}} GTEST_SHUFFLE=1 GTEST_TOTAL_SHARDS={{[1-6]}} GTEST_SHARD_INDEX=0 GTEST_RANDOM_SEED=123 {{.*}}[[FILE]]
23 # CHECK: [ RUN ] FirstTest.subTestA
24 # CHECK-NEXT: [ OK ] FirstTest.subTestA (8 ms)
28 # CHECK: Failed Tests (1):
29 # CHECK-NEXT: googletest-sanitizer-error :: [[PATH]][[FILE]]/0/1
30 # CHECK: Passed{{ *}}: 1
31 # CHECK: Failed{{ *}}: 1