Skip to content

Skip tests on windows #594

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Tests/SWBBuildServiceTests/BuildServiceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import SWBBuildService
import SWBTestSupport

@Suite fileprivate struct BuildServiceTests: CoreBasedTests {
@Test func createXCFramework() async throws {
@Test(.skipHostOS(.windows))
func createXCFramework() async throws {
do {
let (result, message) = try await withBuildService { await $0.createXCFramework([], currentWorkingDirectory: Path.root.str, developerPath: nil) }
#expect(!result)
Expand All @@ -37,7 +38,8 @@ import SWBTestSupport
}
}

@Test func macCatalystSupportsProductTypes() async throws {
@Test(.skipHostOS(.windows))
func macCatalystSupportsProductTypes() async throws {
#expect(try await withBuildService { try await $0.productTypeSupportsMacCatalyst(developerPath: nil, productTypeIdentifier: "com.apple.product-type.application") })
#expect(try await withBuildService { try await $0.productTypeSupportsMacCatalyst(developerPath: nil, productTypeIdentifier: "com.apple.product-type.framework") })
#expect(try await !withBuildService { try await $0.productTypeSupportsMacCatalyst(developerPath: nil, productTypeIdentifier: "com.apple.product-type.application.on-demand-install-capable") })
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftBuildTests/MacroEvaluationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ fileprivate struct MacroEvaluationTests {
}
}

@Test(.requireSDKs(.host), .userDefaults(["EnablePluginManagerLogging": "0"]))
@Test(.requireSDKs(.host), .skipHostOS(.windows), .userDefaults(["EnablePluginManagerLogging": "0"]))
func macroEvaluationAdvanced() async throws {
try await withTemporaryDirectory { tmpDir in
try await withAsyncDeferrable { deferrable in
Expand Down
4 changes: 2 additions & 2 deletions Tests/SwiftBuildTests/PIFTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ fileprivate struct PIFTests {
typealias LookupObject = (@Sendable (SwiftBuildServicePIFObjectType, String) async throws -> SWBPropertyListItem)

/// Check incremental PIF transfer.
@Test(.userDefaults(["EnablePluginManagerLogging": "0"]))
@Test(.skipHostOS(.windows), .userDefaults(["EnablePluginManagerLogging": "0"]))
func sessionPIFLoading() async throws {
let service = try await SWBBuildService()

Expand Down Expand Up @@ -327,7 +327,7 @@ fileprivate struct PIFTests {
}

/// Check PIF incremental cache.
@Test(.userDefaults(["EnablePluginManagerLogging": "0"]))
@Test(.skipHostOS(.windows), .userDefaults(["EnablePluginManagerLogging": "0"]))
func sessionPIFCache() async throws {
try await withTemporaryDirectory { tmpDir in
try await withAsyncDeferrable { deferrable in
Expand Down
Loading