Skip to content

Commit 3469a65

Browse files
authored
Skip unsupported tests on Windows (#510)
1 parent 76259eb commit 3469a65

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Sources/ArgumentParserTestHelpers/TestHelpers.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@ extension XCTest {
232232
exitCode: ExitCode = .success,
233233
file: StaticString = #file, line: UInt = #line) throws
234234
{
235+
#if os(Windows)
236+
throw XCTSkip("Unsupported on this platform")
237+
#endif
238+
235239
let arguments = Array(command.dropFirst())
236240
let commandName = String(command.first!)
237241
let commandURL = debugURL.appendingPathComponent(commandName)
@@ -286,6 +290,9 @@ extension XCTest {
286290
expected: String,
287291
file: StaticString = #file, line: UInt = #line
288292
) throws {
293+
#if os(Windows)
294+
throw XCTSkip("Unsupported on this platform")
295+
#endif
289296

290297
let splitCommand = command.split(separator: " ")
291298
let arguments = splitCommand.dropFirst().map(String.init)
@@ -337,6 +344,10 @@ extension XCTest {
337344
file: StaticString = #file,
338345
line: UInt = #line
339346
) throws {
347+
#if os(Windows)
348+
throw XCTSkip("Unsupported on this platform")
349+
#endif
350+
340351
let commandURL = debugURL.appendingPathComponent(command)
341352
var command = [
342353
"generate-manual", commandURL.path,

0 commit comments

Comments
 (0)