Skip to content

Disable TestFileManager.test_emptyFilename on Windows #5124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Tests/Foundation/TestFileManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1258,8 +1258,10 @@ class TestFileManager : XCTestCase {
#endif // !os(Android)
#endif // !DEPLOYMENT_RUNTIME_OBJC

func test_emptyFilename() {

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

// Not Implemented - XCTAssertNil(fm.componentsToDisplay(forPath: ""))
// Not Implemented - XCTAssertEqual(fm.displayName(atPath: ""), "")
#endif // os(Windows)
}

func test_getRelationship() throws {
Expand Down