File tree 1 file changed +1
-4
lines changed
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -155,14 +155,12 @@ class ProcessTests: XCTestCase {
155
155
try withCustomEnv ( [ " PATH " : tmpdir. pathString] ) {
156
156
XCTAssertNotNil ( Process . findExecutable ( " executableProgram.exe " ) )
157
157
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 " ) )
160
159
}
161
160
}
162
161
#endif
163
162
}
164
163
165
- #if !os(Windows) // Foundation treats all readable files as executable on Windows
166
164
func testNonExecutableLaunch( ) throws {
167
165
try testWithTemporaryDirectory { tmpdir in
168
166
// Create a local nonexecutable file to test.
@@ -184,7 +182,6 @@ class ProcessTests: XCTestCase {
184
182
}
185
183
}
186
184
}
187
- #endif
188
185
189
186
#if !os(Windows) // Signals are not supported in Windows
190
187
func testSignals( ) throws {
You can’t perform that action at this time.
0 commit comments