Skip to content

Commit 4af9bb2

Browse files
authoredFeb 1, 2024
[5.10] Gate new tests on supportsSDKDependentTests() (#7308)
1 parent 4222b0f commit 4af9bb2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎Tests/BuildTests/BuildSystemDelegateTests.swift

+3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
import PackageModel
1314
import SPMTestSupport
1415
import XCTest
1516

1617
import var TSCBasic.localFileSystem
1718

1819
final class BuildSystemDelegateTests: XCTestCase {
1920
func testDoNotFilterLinkerDiagnostics() throws {
21+
try XCTSkipIf(!UserToolchain.default.supportsSDKDependentTests(), "skipping because test environment doesn't support this test")
2022
try fixture(name: "Miscellaneous/DoNotFilterLinkerDiagnostics") { fixturePath in
2123
#if !os(macOS)
2224
// These linker diagnostics are only produced on macOS.
@@ -28,6 +30,7 @@ final class BuildSystemDelegateTests: XCTestCase {
2830
}
2931

3032
func testFilterNonFatalCodesignMessages() throws {
33+
try XCTSkipIf(!UserToolchain.default.supportsSDKDependentTests(), "skipping because test environment doesn't support this test")
3134
// Note: we can re-use the `TestableExe` fixture here since we just need an executable.
3235
try fixture(name: "Miscellaneous/TestableExe") { fixturePath in
3336
_ = try executeSwiftBuild(fixturePath)

0 commit comments

Comments
 (0)
Please sign in to comment.