Skip to content

Commit 22db541

Browse files
giordanoKristofferC
authored andcommitted
Use @test ... skip=... instead of @test_skip
(cherry picked from commit 34a5151)
1 parent b6c957b commit 22db541

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
@@ -1685,19 +1685,19 @@ end
16851685
chmod(fpath, 0o644)
16861686
@test !Sys.isexecutable(fpath)
16871687
@test Sys.isreadable(fpath)
1688-
Sys.iswindows() ? @test_skip(Sys.iswriteable(fpath)) : @test(Sys.iswriteable(fpath))
1688+
@test Sys.iswriteable(fpath) skip=Sys.iswindows()
16891689
chmod(fpath, 0o755)
16901690
@test Sys.isexecutable(fpath)
16911691
@test Sys.isreadable(fpath)
1692-
Sys.iswindows() ? @test_skip(Sys.iswriteable(fpath)) : @test(Sys.iswriteable(fpath))
1692+
@test Sys.iswriteable(fpath) skip=Sys.iswindows()
16931693
chmod(fpath, 0o444)
16941694
@test !Sys.isexecutable(fpath)
16951695
@test Sys.isreadable(fpath)
16961696
@test !Sys.iswriteable(fpath)
16971697
chmod(fpath, 0o244)
16981698
@test !Sys.isexecutable(fpath)
1699-
Sys.iswindows() ? @test_skip(!Sys.isreadable(fpath)) : @test(!Sys.isreadable(fpath))
1700-
Sys.iswindows() ? @test_skip(Sys.iswriteable(fpath)) : @test(Sys.iswriteable(fpath))
1699+
@test !Sys.isreadable(fpath) skip=Sys.iswindows()
1700+
@test Sys.iswriteable(fpath) skip=Sys.iswindows()
17011701

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

0 commit comments

Comments
 (0)