Skip to content

Commit

Permalink
There's another one
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Mar 5, 2020
1 parent 4379e74 commit 27f8f36
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions test/file.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1218,8 +1218,18 @@ cd(dirwalk) do

root, dirs, files = take!(chnl)
@test root == joinpath(".", "sub_dir1")
@test dirs == (has_symlinks ? ["link", "subsub_dir1", "subsub_dir2"] : ["subsub_dir1", "subsub_dir2"])
@test files == ["file1", "file2"]
if has_symlinks
if follow_symlinks
@test dirs == ["link", "subsub_dir1", "subsub_dir2"]
@test files == ["file1", "file2"]
else
@test dirs == ["subsub_dir1", "subsub_dir2"]
@test files == ["file1", "file2", "link"]
end
else
@test dirs == ["subsub_dir1", "subsub_dir2"]
@test files == ["file1", "file2"]
end

root, dirs, files = take!(chnl)
if follow_symlinks
Expand Down

0 comments on commit 27f8f36

Please sign in to comment.