Skip to content

Commit

Permalink
Enable more tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
stevapple committed Jan 7, 2021
1 parent e4cda47 commit 4534de9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Tests/TSCBasicTests/ProcessTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,12 @@ class ProcessTests: XCTestCase {
try withCustomEnv(["PATH": tmpdir.pathString]) {
XCTAssertNotNil(Process.findExecutable("executableProgram.exe"))
XCTAssertNotNil(Process.findExecutable("executableProgram"))
// Currently, Foundation treats all readable files as executable on Windows.
// XCTAssertNil(Process.findExecutable("program.bat"))
XCTAssertNil(Process.findExecutable("program.bat"))
}
}
#endif
}

#if !os(Windows) // Foundation treats all readable files as executable on Windows
func testNonExecutableLaunch() throws {
try testWithTemporaryDirectory { tmpdir in
// Create a local nonexecutable file to test.
Expand All @@ -147,7 +145,6 @@ class ProcessTests: XCTestCase {
}
}
}
#endif

#if !os(Windows) // Signals are not supported in Windows
func testSignals() throws {
Expand Down

0 comments on commit 4534de9

Please sign in to comment.