Skip to content

Commit eb84bde

Browse files
author
Mariusz Borsa
committed
Only run testSanitizeStableAbi on Apple platforms
testSanitizeStableAbi fails on Linux. The SanitizeStableAbi for now only makes sense on Apple OSes, so limiting the test to those rdar://121121682
1 parent 3a7016a commit eb84bde

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/SwiftDriverTests/SwiftDriverTests.swift

+2
Original file line numberDiff line numberDiff line change
@@ -2781,6 +2781,7 @@ final class SwiftDriverTests: XCTestCase {
27812781
}
27822782
}
27832783

2784+
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
27842785
func testSanitizeStableAbi() throws {
27852786
var driver = try Driver(args: ["swiftc", "-sanitize=address", "-sanitize-stable-abi", "Test.swift"])
27862787
guard driver.isFrontendArgSupported(.sanitizeStableAbiEQ) else {
@@ -2804,6 +2805,7 @@ final class SwiftDriverTests: XCTestCase {
28042805
}
28052806
}
28062807
}
2808+
#endif
28072809

28082810
func testADDITIONAL_SWIFT_DRIVER_FLAGS() throws {
28092811
var env = ProcessEnv.vars

0 commit comments

Comments
 (0)