[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:
Carl Peto
2025-12-03 11:31:37 +00:00
parent 4f29698edf
commit 959dc1bdb7

View File

@@ -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)
}