Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / utils / lit / tests / googletest-crash.py
blobf83e0dc7dd0e9d6fe650d1d421dec0661331b23f
1 # Check GoogleTest shard test crashes are handled.
3 # RUN: not %{lit} -v %{inputs}/googletest-crash | FileCheck %s
5 # CHECK: -- Testing:
6 # CHECK: FAIL: googletest-crash :: [[PATH:[Dd]ummy[Ss]ub[Dd]ir/]][[FILE:OneTest\.py]]/0
7 # CHECK: *** TEST 'googletest-crash :: [[PATH]][[FILE]]/0{{.*}} FAILED ***
8 # CHECK-NEXT: Script(shard):
9 # CHECK-NEXT: --
10 # CHECK-NEXT: GTEST_OUTPUT=json:[[JSON:[^[:space:]]*\.json]] GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS={{[1-6]}} GTEST_SHARD_INDEX=0 {{.*}}[[FILE]]
11 # CHECK-NEXT: --
12 # CHECK-EMPTY:
13 # CHECK-NEXT: [----------] 4 test from FirstTest
14 # CHECK-NEXT: [ RUN ] FirstTest.subTestA
15 # CHECK-NEXT: [ OK ] FirstTest.subTestA (18 ms)
16 # CHECK-NEXT: [ RUN ] FirstTest.subTestB
17 # CHECK-NEXT: I am about to crash
18 # CHECK-EMPTY:
19 # CHECK-NEXT: --
20 # CHECK-NEXT: exit:
21 # CHECK-NEXT: --
22 # CHECK-NEXT: shard JSON output does not exist: [[JSON]]
23 # CHECK-NEXT: ***
24 # CHECK: Failed Tests (1):
25 # CHECK-NEXT: googletest-crash :: [[PATH]][[FILE]]/0/{{[1-6]}}
26 # CHECK: Failed{{ *}}: 1