Skip to content

Commit 014baf3

Browse files
committed
Silence noisy test in test/cmdlineargs.jl
1 parent e75dd47 commit 014baf3

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

test/cmdlineargs.jl

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,16 @@ end
145145

146146
let exename = `$(Base.julia_cmd()) --startup-file=no --color=no`
147147
# tests for handling of ENV errors
148-
let v = writereadpipeline(
149-
"println(\"REPL: \", @which(less), @isdefined(InteractiveUtils))",
150-
setenv(`$exename -i -E '@assert isempty(LOAD_PATH); push!(LOAD_PATH, "@stdlib"); @isdefined InteractiveUtils'`,
151-
"JULIA_LOAD_PATH" => "",
152-
"JULIA_DEPOT_PATH" => ";:",
153-
"HOME" => homedir()))
148+
let
149+
# Redirect stderr to devnull until the test is broken
150+
redirect_stderr(devnull) do
151+
v = writereadpipeline(
152+
"println(\"REPL: \", @which(less), @isdefined(InteractiveUtils))",
153+
setenv(`$exename -i -E '@assert isempty(LOAD_PATH); push!(LOAD_PATH, "@stdlib"); @isdefined InteractiveUtils'`,
154+
"JULIA_LOAD_PATH" => "",
155+
"JULIA_DEPOT_PATH" => ";:",
156+
"HOME" => homedir()))
157+
end
154158
# @which is undefined
155159
@test_broken v == ("false\nREPL: InteractiveUtilstrue\n", true)
156160
end

0 commit comments

Comments
 (0)