mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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
This commit is contained in:
@@ -57,7 +57,7 @@ func spawnThread(_ shouldCrash: Bool) {
|
||||
|
||||
let crashingThreadIndex = (1..<10).randomElement()
|
||||
|
||||
for threadIndex in 0..<10 {
|
||||
for threadIndex in 1..<10 {
|
||||
spawnThread(threadIndex == crashingThreadIndex)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user