Skip to content

Commit

Permalink
wip: debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
fatteneder committed Feb 17, 2024
1 parent 64ea535 commit bca1214
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/file.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1671,38 +1671,38 @@ end
touch(fpath)
@test ispath(fpath)

@warn stat(subdir)
@warn stat(fpath)
println(stat(subdir))
println(stat(fpath))

# Test that we can actually set the executable/readable/writeable bit on all platforms.
chmod(fpath, 0o644)
@warn stat(fpath)
println(stat(fpath))
@test !Sys.isexecutable(fpath)
@test Sys.isreadable(fpath)
@test Sys.iswriteable(fpath)
chmod(fpath, 0o755)
@warn stat(fpath)
println(stat(fpath))
@test Sys.isexecutable(fpath)
@test Sys.isreadable(fpath)
@test Sys.iswriteable(fpath)
chmod(fpath, 0o444)
@warn stat(fpath)
println(stat(fpath))
@test !Sys.isexecutable(fpath)
@test Sys.isreadable(fpath)
@test !Sys.iswriteable(fpath)
chmod(fpath, 0o244)
@warn stat(fpath)
println(stat(fpath))
@test !Sys.isexecutable(fpath)
@test !Sys.isreadable(fpath)
@test Sys.iswriteable(fpath)

# Ensure that, on Windows, where inheritance is default,
# chmod still behaves as we expect.
if Sys.iswindows()
@warn stat(subdir)
println(stat(subdir))
chmod(subdir, 0o666)
@warn stat(subdir)
@warn stat(fpath)
println(stat(subdir))
println(stat(fpath))
@test !Sys.isexecutable(fpath)
@test Sys.isreadable(fpath)
@test Sys.iswriteable(fpath)
Expand Down

0 comments on commit bca1214

Please sign in to comment.