Skip to content

Commit 6ca4895

Browse files
authored
Merge pull request #83319 from etcwilde/ewilde/more-freebsd-tests
FreeBSD: Fix more compiler tests
2 parents e0aa6a4 + 698dbc0 commit 6ca4895

File tree

7 files changed

+14
-7
lines changed

7 files changed

+14
-7
lines changed

test/ClangImporter/cfuncs_parse.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ func test_pow() {
7070
// https://github.com/apple/swift/issues/51573
7171
// long doubles in AAPCS64 and 64-bit Android are 128 bits, which is not
7272
// supported by Swift, so don't test this.
73-
#if !((os(Android) && _pointerBitWidth(_64)) || (os(Linux) && arch(arm64)))
73+
#if !((os(Android) && _pointerBitWidth(_64)) ||
74+
(os(Linux) && arch(arm64)) ||
75+
(os(FreeBSD) && arch(arm64)))
7476
func test_powl() {
7577
powl(1.5, 2.5)
7678
}

test/Distributed/Runtime/distributed_actor_remoteCall_accessibleFunctions_crossModule.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080

8181
// Locating the built libraries failed on Linux (construction of test case),
8282
// but we primarily care about macOS in this test
83-
// UNSUPPORTED: OS=linux-gnu
83+
// UNSUPPORTED: OS=linux-gnu || OS=freebsd
8484

8585
// %env does not seem to work on Windows
8686
// UNSUPPORTED: OS=windows-msvc

test/Distributed/Runtime/distributed_actor_remoteCall_accessibleFunctions_crossModule_irgen.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
// Locating the built libraries failed on Linux (construction of test case),
5353
// but we primarily care about macOS in this test
54-
// UNSUPPORTED: OS=linux-gnu
54+
// UNSUPPORTED: OS=linux-gnu || OS=freebsd
5555

5656
// %env does not seem to work on Windows
5757
// UNSUPPORTED: OS=windows-msvc
@@ -246,4 +246,4 @@ class AnotherImpl {}
246246
// CHECK-SAME: ) to i64)
247247
// CHECK-SAME: ) to i32
248248
// CHECK-SAME: )
249-
// CHECK-SAME: }, section "__TEXT,__const", no_sanitize_address, align 4
249+
// CHECK-SAME: }, section "__TEXT,__const", no_sanitize_address, align 4

test/IRGen/profiling_marker_thunks.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// RUN: %target-swift-frontend -module-name A -I %t -emit-ir %s | %FileCheck %s --check-prefix=NOTHUNK
88

99
// UNSUPPORTED: OS=windows-msvc
10-
// UNSUPPORTED: OS=linux-gnu, OS=linux-android, OS=linux-androideabi
10+
// UNSUPPORTED: OS=linux-gnu, OS=linux-android, OS=linux-androideabi, OS=freebsd
1111

1212
// UNSUPPORTED: CPU=arm64e
1313

test/Interpreter/cdecl_official_run.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
/// Build and run a binary from Swift and C code.
1111
// RUN: %clang-no-modules -c %t/Client.c -o %t/Client.o -target %target-triple \
12-
// RUN: -I %t -I %clang-include-dir -Werror -isysroot %sdk
12+
// RUN: %target-pic-opt -I %t -I %clang-include-dir -Werror -isysroot %sdk
1313
// RUN: %target-build-swift %t/Lib.swift %t/Client.o -O -o %t/a.out \
1414
// RUN: -enable-experimental-feature CDecl -parse-as-library
1515
// RUN: %target-codesign %t/a.out

test/Prototypes/CollectionTransformers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ import Darwin
200200
import Dispatch
201201

202202
// FIXME: port to Linux.
203-
// XFAIL: OS=linux-gnu, OS=windows-msvc, OS=openbsd, OS=linux-android
203+
// XFAIL: OS=linux-gnu, OS=windows-msvc, OS=freebsd, OS=openbsd, OS=linux-android
204204

205205
// A wrapper for pthread_t with platform-independent interface.
206206
public struct _stdlib_pthread_t : Equatable, Hashable {

test/Sanitizers/asan/asan.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
// XFAIL: OS=windows-msvc
22

3+
// This test hangs on aarch64 FreeBSD
4+
// XFAIL will try to run the test and the verify that the test fails, which
5+
// still hits the hang.
6+
// UNSUPPORTED: OS=freebsd && CPU=aarch64
7+
38
// RUN: %target-swiftc_driver %s -g -sanitize=address -o %t_asan-binary
49
// RUN: %target-codesign %t_asan-binary
510
// RUN: env %env-ASAN_OPTIONS=abort_on_error=0 not %target-run %t_asan-binary 2>&1 | %FileCheck %s

0 commit comments

Comments
 (0)