File tree 1 file changed +13
-3
lines changed
Tests/SwiftFormatTests/API
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -18,17 +18,23 @@ final class ConfigurationTests: XCTestCase {
18
18
XCTAssertEqual ( defaultInitConfig, emptyJSONConfig)
19
19
}
20
20
21
- func testMissingConfigurationFile( ) {
21
+ func testMissingConfigurationFile( ) throws {
22
22
#if os(Windows)
23
+ #if compiler(<6.0.2)
24
+ try XCTSkipIf ( true , " Requires https://github.com/swiftlang/swift-foundation/pull/983 " )
25
+ #endif
23
26
let path = #"C:\test.swift"#
24
27
#else
25
28
let path = " /test.swift "
26
29
#endif
27
30
XCTAssertNil ( Configuration . url ( forConfigurationFileApplyingTo: URL ( fileURLWithPath: path) ) )
28
31
}
29
32
30
- func testMissingConfigurationFileInSubdirectory( ) {
33
+ func testMissingConfigurationFileInSubdirectory( ) throws {
31
34
#if os(Windows)
35
+ #if compiler(<6.0.2)
36
+ try XCTSkipIf ( true , " Requires https://github.com/swiftlang/swift-foundation/pull/983 " )
37
+ #endif
32
38
let path = #"C:\whatever\test.swift"#
33
39
#else
34
40
let path = " /whatever/test.swift "
@@ -37,7 +43,11 @@ final class ConfigurationTests: XCTestCase {
37
43
}
38
44
39
45
func testMissingConfigurationFileMountedDirectory( ) throws {
40
- #if !os(Windows)
46
+ #if os(Windows)
47
+ #if compiler(<6.0.2)
48
+ try XCTSkipIf ( true , " Requires https://github.com/swiftlang/swift-foundation/pull/983 " )
49
+ #endif
50
+ #else
41
51
try XCTSkipIf ( true , #"\\ file mounts are only a concept on Windows"# )
42
52
#endif
43
53
let path = #"\\mount\test.swift"#
You can’t perform that action at this time.
0 commit comments