File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ func spawnThread(_ shouldCrash: Bool) {
5757
5858let crashingThreadIndex = ( 1 ..< 10 ) . randomElement ( )
5959
60- for threadIndex in 0 ..< 10 {
60+ for threadIndex in 1 ..< 10 {
6161 spawnThread ( threadIndex == crashingThreadIndex)
6262}
6363
@@ -69,9 +69,11 @@ while (true) {
6969
7070// make sure there are no threads before the crashing thread (rdar://164566321)
7171
72- // CHECK-NOT: Thread {{[0-9]+}}:
72+ // we expect the first thread not to be thread 0, it should be the crashing thread instead
73+ // CHECK-NOT: Thread 0{{( ".*")?}}:
7374
74- // CHECK: Thread {{[1-9]+}} {{(".*" )?}}crashed:
75+ // we expect a crash on a thread other than 0
76+ // CHECK: Thread {{[1-9][0-9]*}} {{(".*" )?}}crashed:
7577
7678// CHECK: 0 0x{{[0-9a-f]+}} reallyCrashMe() + {{[0-9]+}} in CrashWithThreads at {{.*}}/CrashWithThreads
7779// CHECK-NEXT: 1 [ra] 0x{{[0-9a-f]+}} crashMe() + {{[0-9]+}} in CrashWithThreads at {{.*}}/CrashWithThreads
You can’t perform that action at this time.
0 commit comments