diff --git a/Tests/SystemTests/FilePathTests/FilePathComponentsTest.swift b/Tests/SystemTests/FilePathTests/FilePathComponentsTest.swift index 693fc11f..7d74cf26 100644 --- a/Tests/SystemTests/FilePathTests/FilePathComponentsTest.swift +++ b/Tests/SystemTests/FilePathTests/FilePathComponentsTest.swift @@ -231,7 +231,7 @@ final class FilePathComponentsTest: XCTestCase { } func testCases() { - let testPaths: Array = [ + var testPaths: Array = [ TestPathComponents("", root: nil, []), TestPathComponents("/", root: "/", []), TestPathComponents("foo", root: nil, ["foo"]), @@ -244,11 +244,16 @@ final class FilePathComponentsTest: XCTestCase { TestPathComponents("/foo///bar", root: "/", ["foo", "bar"]), TestPathComponents("foo/bar/", root: nil, ["foo", "bar"]), TestPathComponents("foo///bar/baz/", root: nil, ["foo", "bar", "baz"]), - TestPathComponents("//foo///bar/baz/", root: "/", ["foo", "bar", "baz"]), TestPathComponents("./", root: nil, ["."]), TestPathComponents("./..", root: nil, [".", ".."]), TestPathComponents("/./..//", root: "/", [".", ".."]), ] +#if !os(Windows) + // See https://github.com/apple/swift-system/issues/137 + testPaths += [ + TestPathComponents("//foo///bar/baz/", root: "/", ["foo", "bar", "baz"]), + ] +#endif testPaths.forEach { $0.runAllTests() } }