From c86a6d19ce33a0f2b34c71a623540163dd21e400 Mon Sep 17 00:00:00 2001 From: Boris Buegling Date: Tue, 30 Jan 2024 09:37:32 -0800 Subject: [PATCH] Gate new tests on `supportsSDKDependentTests()` (cherry picked from commit 8bc47da51b786171795b18ce8d203df3fc9d12db) --- Tests/BuildTests/BuildSystemDelegateTests.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tests/BuildTests/BuildSystemDelegateTests.swift b/Tests/BuildTests/BuildSystemDelegateTests.swift index 88308460126..2251dde6d44 100644 --- a/Tests/BuildTests/BuildSystemDelegateTests.swift +++ b/Tests/BuildTests/BuildSystemDelegateTests.swift @@ -10,6 +10,7 @@ // //===----------------------------------------------------------------------===// +import PackageModel import SPMTestSupport import XCTest @@ -17,6 +18,7 @@ import var TSCBasic.localFileSystem final class BuildSystemDelegateTests: XCTestCase { func testDoNotFilterLinkerDiagnostics() throws { + try XCTSkipIf(!UserToolchain.default.supportsSDKDependentTests(), "skipping because test environment doesn't support this test") try fixture(name: "Miscellaneous/DoNotFilterLinkerDiagnostics") { fixturePath in #if !os(macOS) // These linker diagnostics are only produced on macOS. @@ -28,6 +30,7 @@ final class BuildSystemDelegateTests: XCTestCase { } func testFilterNonFatalCodesignMessages() throws { + try XCTSkipIf(!UserToolchain.default.supportsSDKDependentTests(), "skipping because test environment doesn't support this test") // Note: we can re-use the `TestableExe` fixture here since we just need an executable. try fixture(name: "Miscellaneous/TestableExe") { fixturePath in _ = try executeSwiftBuild(fixturePath)