Skip to content

Commit

Permalink
Silence warnings in test/file.jl (#53372)
Browse files Browse the repository at this point in the history
Warnings were introduced in #33593.
  • Loading branch information
fatteneder authored Feb 17, 2024
2 parents 2ca3753 + 4990429 commit b5221e1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/file.jl
Original file line number Diff line number Diff line change
Expand Up @@ -637,9 +637,11 @@ end
MAX_PATH = (Sys.iswindows() ? 260 - length(PATH_PREFIX) : 255) - 9
for i = 0:9
local tmp = joinpath(PATH_PREFIX, "x"^MAX_PATH * "123456789"[1:i])
@test withenv(var => tmp) do
tempdir()
end == tmp
no_error_logging() do
@test withenv(var => tmp) do
tempdir()
end == tmp
end
end
end

Expand Down

0 comments on commit b5221e1

Please sign in to comment.