Skip to content

Commit 4534de9

Browse files
committed
Enable more tests on Windows
1 parent e4cda47 commit 4534de9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Tests/TSCBasicTests/ProcessTests.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,12 @@ class ProcessTests: XCTestCase {
118118
try withCustomEnv(["PATH": tmpdir.pathString]) {
119119
XCTAssertNotNil(Process.findExecutable("executableProgram.exe"))
120120
XCTAssertNotNil(Process.findExecutable("executableProgram"))
121-
// Currently, Foundation treats all readable files as executable on Windows.
122-
// XCTAssertNil(Process.findExecutable("program.bat"))
121+
XCTAssertNil(Process.findExecutable("program.bat"))
123122
}
124123
}
125124
#endif
126125
}
127126

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

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

0 commit comments

Comments
 (0)