File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -1554,15 +1554,15 @@ let
1554
1554
end
1555
1555
1556
1556
# issue #34061
1557
- o_file = tempname ()
1558
- output = read (Cmd (` $(Base. julia_cmd ()) --output-o=$o_file -e 'Base.reinit_stdio();
1559
- f() = ccall((:dne, :does_not_exist), Cvoid, ());
1560
- f()'` ; ignorestatus= true ), String )
1561
- @test occursin ( output, """
1562
- ERROR: could not load library "does_not_exist"
1563
- does_not_exist.so: cannot open shared object file: No such file or directory
1564
- """ )
1565
- @test ! isfile (o_file)
1557
+ let o_file = tempname (), err = Base . PipeEndpoint ()
1558
+ run ( pipeline (Cmd (` $(Base. julia_cmd ()) --output-o=$o_file -e 'Base.reinit_stdio();
1559
+ f() = ccall((:dne, :does_not_exist), Cvoid, ());
1560
+ f()'` ; ignorestatus= true ), stderr = err), wait = false )
1561
+ output = read (err, String)
1562
+ @test occursin ( """ ERROR: could not load library "does_not_exist"
1563
+ """ , output)
1564
+ @test ! isfile (o_file )
1565
+ end
1566
1566
1567
1567
# pass NTuple{N,T} as Ptr{T}/Ref{T}
1568
1568
let
You can’t perform that action at this time.
0 commit comments