From 27f8f36dfe41be5ddb0edf4cef9066a69052dff6 Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Thu, 5 Mar 2020 03:42:45 -0500 Subject: [PATCH] There's another one --- test/file.jl | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/test/file.jl b/test/file.jl index 2ac09dd403f9f3..74a42cf7275a52 100644 --- a/test/file.jl +++ b/test/file.jl @@ -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