File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Sources/_InternalTestSupport Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,13 @@ public func XCTRequires(
101
101
}
102
102
}
103
103
104
+ public func XCTSkipIfCompilerLessThan6_2( ) throws {
105
+ #if compiler(>=6.2)
106
+ #else
107
+ throw XCTSkip ( " Skipping as compiler version is less thann 6.2 " )
108
+ #endif
109
+ }
110
+
104
111
/// An `async`-friendly replacement for `XCTAssertThrowsError`.
105
112
public func XCTAssertAsyncThrowsError< T> (
106
113
_ expression: @autoclosure ( ) async throws -> T ,
Original file line number Diff line number Diff line change @@ -796,7 +796,7 @@ final class ManifestSourceGenerationTests: XCTestCase {
796
796
}
797
797
798
798
func testStrictMemorySafety( ) async throws {
799
- try XCTSkipOnWindows ( because : " compilation error: type 'SwiftSetting' has no member 'strictMemorySafety' " )
799
+ try XCTSkipIfCompilerLessThan6_2 ( )
800
800
801
801
let manifestContents = """
802
802
// swift-tools-version:6.2
@@ -865,7 +865,7 @@ final class ManifestSourceGenerationTests: XCTestCase {
865
865
}
866
866
867
867
func testDefaultIsolation( ) async throws {
868
- try XCTSkipOnWindows ( because: " there are compilation errors " )
868
+ try XCTSkipOnWindows ( because: " https://github.com/swiftlang/swift-package-manager/issues/8543: there are compilation errors" )
869
869
870
870
let manifest = Manifest . createRootManifest (
871
871
displayName: " pkg " ,
Original file line number Diff line number Diff line change @@ -16145,8 +16145,6 @@ final class WorkspaceTests: XCTestCase {
16145
16145
}
16146
16146
16147
16147
func testInvalidTrait_WhenParentPackageEnablesTraits() async throws {
16148
- try XCTSkipOnWindows(because: #"\tmp\ws doesn't exist in file system"#)
16149
-
16150
16148
let sandbox = AbsolutePath("/tmp/ws/")
16151
16149
let fs = InMemoryFileSystem()
16152
16150
@@ -16208,8 +16206,6 @@ final class WorkspaceTests: XCTestCase {
16208
16206
}
16209
16207
16210
16208
func testInvalidTraitConfiguration_ForRootPackage() async throws {
16211
- try XCTSkipOnWindows(because: #"\tmp\ws doesn't exist in file system"#)
16212
-
16213
16209
let sandbox = AbsolutePath("/tmp/ws/")
16214
16210
let fs = InMemoryFileSystem()
16215
16211
You can’t perform that action at this time.
0 commit comments