From 82c1f4f06d359a727c74a7bf6ac786042b409a9f Mon Sep 17 00:00:00 2001 From: Florian Atteneder Date: Sat, 17 Feb 2024 19:01:54 +0100 Subject: [PATCH] silence warnings in tests introduced in #33593 --- test/file.jl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/file.jl b/test/file.jl index 2dfd881b8a4878..8f62b533083c63 100644 --- a/test/file.jl +++ b/test/file.jl @@ -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