Skip to content

Commit 7f0e028

Browse files
committed
[Tests] NFC: Add iOS requirement to selectConfiguredTargets instead of artifacts
The test checks whether it's possible to select an appropriate target given a run destination and uses both macOS and iOS SDKs. If there is no iOS SDK installed it won't be possible to configure a test target for that platform and the test is going to fail. Resolves: rdar://162067445
1 parent cee7076 commit 7f0e028

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/SwiftBuildTests/InspectBuildDescriptionTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fileprivate struct InspectBuildDescriptionTests {
7474
}
7575
}
7676

77-
@Test(.requireSDKs(.macOS, .iOS))
77+
@Test(.requireSDKs(.macOS))
7878
func artifacts() async throws {
7979
try await withTemporaryDirectory { (temporaryDirectory: NamedTemporaryDirectory) in
8080
try await withAsyncDeferrable { deferrable in
@@ -307,7 +307,7 @@ fileprivate struct InspectBuildDescriptionTests {
307307
}
308308
}
309309

310-
@Test(.requireSDKs(.macOS))
310+
@Test(.requireSDKs(.macOS, .iOS))
311311
func selectConfiguredTargets() async throws {
312312
try await withTemporaryDirectory { (temporaryDirectory: NamedTemporaryDirectory) in
313313
try await withAsyncDeferrable { deferrable in

0 commit comments

Comments
 (0)