Skip to content

Commit 0866f42

Browse files
committed
Enable more tests on Windows
1 parent 9c5e0c6 commit 0866f42

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: Tests/TSCBasicTests/ProcessTests.swift

+1-4
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,12 @@ class ProcessTests: XCTestCase {
155155
try withCustomEnv(["PATH": tmpdir.pathString]) {
156156
XCTAssertNotNil(Process.findExecutable("executableProgram.exe"))
157157
XCTAssertNotNil(Process.findExecutable("executableProgram"))
158-
// Currently, Foundation treats all readable files as executable on Windows.
159-
// XCTAssertNil(Process.findExecutable("program.bat"))
158+
XCTAssertNil(Process.findExecutable("program.bat"))
160159
}
161160
}
162161
#endif
163162
}
164163

165-
#if !os(Windows) // Foundation treats all readable files as executable on Windows
166164
func testNonExecutableLaunch() throws {
167165
try testWithTemporaryDirectory { tmpdir in
168166
// Create a local nonexecutable file to test.
@@ -184,7 +182,6 @@ class ProcessTests: XCTestCase {
184182
}
185183
}
186184
}
187-
#endif
188185

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

0 commit comments

Comments
 (0)