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 @@ -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 {
You can’t perform that action at this time.
0 commit comments