Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Mar 5, 2020
1 parent 7562a90 commit 4379e74
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 @@ -1256,8 +1256,18 @@ cd(dirwalk) do
root, dirs, files = take!(chnl)
end
@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)
@test root == joinpath(".", "sub_dir2")
Expand Down

0 comments on commit 4379e74

Please sign in to comment.