Skip to content

Commit 6ecd35f

Browse files
committed
Disable tests where swift-autolink-extract is not available
1 parent 67b8693 commit 6ecd35f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Tests/SwiftDriverTests/SwiftDriverTests.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,9 @@ final class SwiftDriverTests: XCTestCase {
830830
XCTAssertFalse(cmd.contains(.flag("-shared")))
831831
}
832832

833+
// FIXME: This test will fail when run on macOS, because
834+
// swift-autolink-extract is not present
835+
#if os(Linux)
833836
do {
834837
// linux target
835838
var driver = try Driver(args: commonArgs + ["-emit-library", "-target", "x86_64-unknown-linux"])
@@ -857,7 +860,11 @@ final class SwiftDriverTests: XCTestCase {
857860
XCTAssertFalse(cmd.contains(.flag("-dylib")))
858861
XCTAssertFalse(cmd.contains(.flag("-static")))
859862
}
863+
#endif
860864

865+
// FIXME: This test will fail when run on macOS, because
866+
// swift-autolink-extract is not present
867+
#if os(Linux)
861868
do {
862869
// static linux linking
863870
var driver = try Driver(args: commonArgs + ["-emit-library", "-static", "-target", "x86_64-unknown-linux"])
@@ -886,6 +893,7 @@ final class SwiftDriverTests: XCTestCase {
886893
XCTAssertFalse(cmd.contains(.flag("-static")))
887894
XCTAssertFalse(cmd.contains(.flag("-shared")))
888895
}
896+
#endif
889897
}
890898

891899
func testSanitizerArgs() throws {

0 commit comments

Comments
 (0)