File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -145,12 +145,16 @@ end
145
145
146
146
let exename = ` $(Base. julia_cmd ()) --startup-file=no --color=no`
147
147
# 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
154
158
# @which is undefined
155
159
@test_broken v == (" false\n REPL: InteractiveUtilstrue\n " , true )
156
160
end
You can’t perform that action at this time.
0 commit comments