File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments