Skip to content

Commit 22f32e0

Browse files
authored
Merge pull request #83106 from etcwilde/ewilde/freebsd-test-updates
FreeBSD: Fix issues in tests
2 parents 2666b5e + 6b0f814 commit 22f32e0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

test/LinkerSections/function_sections.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
// GOLD: .text.$s16FunctionSections5func1yyF
1212

1313
// LLD: .text.$s16FunctionSections5func1yyF
14-
// LLD-NOT: .text.$s16FunctionSections5func2yyF

test/Sanitizers/tsan/tsan.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var racey_x: Int;
5050

5151
// TSan %deflake as part of the test.
5252
for _ in 1...5 {
53-
#if os(macOS) || os(iOS)
53+
#if os(macOS) || os(iOS) || os(FreeBSD)
5454
var t : pthread_t?
5555
#else
5656
var t : pthread_t = 0
@@ -61,7 +61,7 @@ for _ in 1...5 {
6161

6262
return nil
6363
}, nil)
64-
#if os(macOS) || os(iOS)
64+
#if os(macOS) || os(iOS) || os(FreeBSD)
6565
threads.append(t!)
6666
#else
6767
threads.append(t)

validation-test/Sanitizers/tsan-inout.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var gInThread2: () -> () = { }
2727
// Spawn two threads, run the two passed in closures simultaneously, and
2828
// join them.
2929
func testRace(name: String, thread inThread1: @escaping () -> (), thread inThread2: @escaping () -> ()) {
30-
#if canImport(Darwin)
30+
#if canImport(Darwin) || os(FreeBSD)
3131
var thread1: pthread_t?
3232
var thread2: pthread_t?
3333
#else

validation-test/stdlib/SIMDParameterPassing.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
// REQUIRES: executable_test
2020
// REQUIRES: long_test
2121
// XFAIL: OS=linux-gnu, OS=linux-android
22+
// UNSUPPORTED: OS=freebsd
2223

2324
import StdlibUnittest
2425
import simd

0 commit comments

Comments
 (0)