Skip to content

Commit 959dc1b

Browse files
committed
[Test] Fix unstable Backtracing unit test
There was a problem in CrashWithThreads where it failed about 10% of the time. This fixes it. rdar://165728982
1 parent 4f29698 commit 959dc1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Backtracing/CrashWithThreads.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func spawnThread(_ shouldCrash: Bool) {
5757

5858
let crashingThreadIndex = (1..<10).randomElement()
5959

60-
for threadIndex in 0..<10 {
60+
for threadIndex in 1..<10 {
6161
spawnThread(threadIndex == crashingThreadIndex)
6262
}
6363

0 commit comments

Comments
 (0)