Skip to content

Commit 974106b

Browse files
authored
Skip test_emptyFilename on Windows while we investigate the failure (#5124)
1 parent b1b4603 commit 974106b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Tests/Foundation/TestFileManager.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,8 +1258,10 @@ class TestFileManager : XCTestCase {
12581258
#endif // !os(Android)
12591259
#endif // !DEPLOYMENT_RUNTIME_OBJC
12601260

1261-
func test_emptyFilename() {
1262-
1261+
func test_emptyFilename() throws {
1262+
#if os(Windows)
1263+
throw XCTSkip("This test is disabled while we investigate why it's failing on Windows.")
1264+
#else
12631265
// Some of these tests will throw an NSException on Darwin which would be normally be
12641266
// modelled by a fatalError() or other hard failure, however since most of these functions
12651267
// are throwable, an NSError is thrown instead which is more useful.
@@ -1398,6 +1400,7 @@ class TestFileManager : XCTestCase {
13981400

13991401
// Not Implemented - XCTAssertNil(fm.componentsToDisplay(forPath: ""))
14001402
// Not Implemented - XCTAssertEqual(fm.displayName(atPath: ""), "")
1403+
#endif // os(Windows)
14011404
}
14021405

14031406
func test_getRelationship() throws {

0 commit comments

Comments
 (0)