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 @@ -118,14 +118,12 @@ class ProcessTests: XCTestCase {
118
118
try withCustomEnv ( [ " PATH " : tmpdir. pathString] ) {
119
119
XCTAssertNotNil ( Process . findExecutable ( " executableProgram.exe " ) )
120
120
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 " ) )
123
122
}
124
123
}
125
124
#endif
126
125
}
127
126
128
- #if !os(Windows) // Foundation treats all readable files as executable on Windows
129
127
func testNonExecutableLaunch( ) throws {
130
128
try testWithTemporaryDirectory { tmpdir in
131
129
// Create a local nonexecutable file to test.
@@ -147,7 +145,6 @@ class ProcessTests: XCTestCase {
147
145
}
148
146
}
149
147
}
150
- #endif
151
148
152
149
#if !os(Windows) // Signals are not supported in Windows
153
150
func testSignals( ) throws {
You can’t perform that action at this time.
0 commit comments