Skip to content

Commit 9036dbc

Browse files
committed
FreeBSD: TSan: Disable Race condition tests
There are a couple of known race conditions that seem to be stemming from the concurrency runtime, triggering test failures in the TSan tests. rdar://158355890
1 parent dfccee6 commit 9036dbc

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

test/Sanitizers/tsan/async_taskgroup_next.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
// Thread destruction interceptor marks the thread ignored and then checks that
1111
// the thread isn't being ignored.
1212
// rdar://158450231
13+
// TSan is also occasionally detecting race conditions in the concurrency
14+
// runtime on FreeBSD.
15+
// rdar://158355890
1316
// XFAIL: OS=freebsd
1417

1518
var scratchBuffer: UnsafeMutableBufferPointer<Int> = .allocate(capacity: 1000)

test/Sanitizers/tsan/once.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
// on some platforms TSan wasn't seeing the synchronization, so would report
1818
// a false positive.
1919

20+
// TSan is detecting race conditions in the concurrency runtime.
21+
// This might be an issue in how it is hooked into the underlying threading
22+
// model on FreeBSD.
23+
// rdar://158355890
24+
// XFAIL: OS=freebsd
25+
2026
import Dispatch
2127

2228
var count = 0

test/Sanitizers/tsan/tsan.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
// don't support TSan.
1515
// UNSUPPORTED: remote_run
1616

17+
// TSan is detecting race conditions in the concurrency runtime.
18+
// This might be an issue in how it is hooked into the underlying threading
19+
// model on FreeBSD.
20+
// rdar://158355890
21+
// XFAIL: OS=freebsd
22+
1723
#if canImport(Darwin)
1824
import Darwin
1925
#elseif canImport(Glibc)

0 commit comments

Comments
 (0)