Skip to content

Commit 6812901

Browse files
authored
Conditionalize testInstallRemote correctly (#7024)
This test uses `TSCBasic.Process` which is unavailable on Darwin platforms with the exception of macOS, so we should not attempt to run this test on those platforms.
1 parent 21c6684 commit 6812901

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/PackageModelTests/SwiftSDKBundleTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ private let fixtureArchivePath = try! AbsolutePath(validating: #file)
121121

122122
final class SwiftSDKBundleTests: XCTestCase {
123123
func testInstallRemote() async throws {
124+
#if canImport(Darwin) && !os(macOS)
125+
try XCTSkipIf(true, "skipping test because process launching is not available")
126+
#endif
127+
124128
let system = ObservabilitySystem.makeForTesting()
125129
var output = [SwiftSDKBundleStore.Output]()
126130
let observabilityScope = system.topScope

0 commit comments

Comments
 (0)