Skip to content

Commit 594586b

Browse files
authored
Merge pull request swiftlang#169 from swiftwasm/main
[pull] swiftwasm from main
2 parents f2be37d + 57c6d69 commit 594586b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Tests/Foundation/Tests/TestFileManager.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ class TestFileManager : XCTestCase {
2525
#endif
2626

2727
func test_NSTemporaryDirectory() {
28+
#if os(Windows)
29+
let validPathSeps: [Character] = ["\\", "/"]
30+
#else
31+
let validPathSeps: [Character] = ["/"]
32+
#endif
33+
2834
let tempDir = NSTemporaryDirectory()
2935
XCTAssertTrue(validPathSeps.contains(where: { tempDir.hasSuffix(String($0)) }), "Temporary directory path must end with path separator")
3036
}

0 commit comments

Comments
 (0)