Skip to content

Commit 66e0d7d

Browse files
authored
Tests: repair the build on Windows (#604)
These use APIs which are not available on Windows, so skipping the test is insufficient as it does not build.
1 parent d9182a9 commit 66e0d7d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Tests/ArgumentParserUnitTests/HelpGenerationTests.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -807,10 +807,7 @@ extension HelpGenerationTests {
807807
}
808808

809809
func testColumnsEnvironmentOverride() throws {
810-
#if os(Windows) || os(WASI)
811-
throw XCTSkip("Unsupported on this platform")
812-
#endif
813-
810+
#if !(os(Windows) || os(WASI))
814811
defer { unsetenv("COLUMNS") }
815812
unsetenv("COLUMNS")
816813
AssertHelp(.default, for: WideHelp.self, columns: nil, equals: """
@@ -849,5 +846,6 @@ extension HelpGenerationTests {
849846
-h, --help Show help information.
850847
851848
""")
849+
#endif
852850
}
853851
}

0 commit comments

Comments
 (0)