Skip to content

Commit 34a5151

Browse files
committed
Use @test ... skip=... instead of @test_skip
1 parent 849d551 commit 34a5151

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/file.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,19 +1677,19 @@ end
16771677
chmod(fpath, 0o644)
16781678
@test !Sys.isexecutable(fpath)
16791679
@test Sys.isreadable(fpath)
1680-
Sys.iswindows() ? @test_skip(Sys.iswriteable(fpath)) : @test(Sys.iswriteable(fpath))
1680+
@test Sys.iswriteable(fpath) skip=Sys.iswindows()
16811681
chmod(fpath, 0o755)
16821682
@test Sys.isexecutable(fpath)
16831683
@test Sys.isreadable(fpath)
1684-
Sys.iswindows() ? @test_skip(Sys.iswriteable(fpath)) : @test(Sys.iswriteable(fpath))
1684+
@test Sys.iswriteable(fpath) skip=Sys.iswindows()
16851685
chmod(fpath, 0o444)
16861686
@test !Sys.isexecutable(fpath)
16871687
@test Sys.isreadable(fpath)
16881688
@test !Sys.iswriteable(fpath)
16891689
chmod(fpath, 0o244)
16901690
@test !Sys.isexecutable(fpath)
1691-
Sys.iswindows() ? @test_skip(!Sys.isreadable(fpath)) : @test(!Sys.isreadable(fpath))
1692-
Sys.iswindows() ? @test_skip(Sys.iswriteable(fpath)) : @test(Sys.iswriteable(fpath))
1691+
@test !Sys.isreadable(fpath) skip=Sys.iswindows()
1692+
@test Sys.iswriteable(fpath) skip=Sys.iswindows()
16931693

16941694
# Ensure that, on Windows, where inheritance is default,
16951695
# chmod still behaves as we expect.

0 commit comments

Comments
 (0)