File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -275,16 +275,16 @@ class TestFileManager : XCTestCase {
275
275
276
276
// test unExecutable if file has no permissions
277
277
try fm. setAttributes ( [ . posixPermissions : NSNumber ( value: Int16 ( 0o0000 ) ) ] , ofItemAtPath: path)
278
- #if os(Windows)
279
- // Files are always executable on Windows
280
- XCTAssertTrue ( fm. isExecutableFile ( atPath: path) )
281
- #else
282
278
XCTAssertFalse ( fm. isExecutableFile ( atPath: path) )
283
- #endif
284
279
285
280
// test executable if file has execute permissions
286
281
try fm. setAttributes ( [ . posixPermissions : NSNumber ( value: Int16 ( 0o0100 ) ) ] , ofItemAtPath: path)
282
+ #if os(Windows)
283
+ // a Windows executable needs to be binary
284
+ XCTAssertFalse ( fm. isExecutableFile ( atPath: path) )
285
+ #else
287
286
XCTAssertTrue ( fm. isExecutableFile ( atPath: path) )
287
+ #endif
288
288
} catch let e {
289
289
XCTFail ( " \( e) " )
290
290
}
You can’t perform that action at this time.
0 commit comments