Skip to content

Commit c6e0f0c

Browse files
gbaraldiKristofferC
authored andcommitted
Fix test
1 parent 0eda5cd commit c6e0f0c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/cmdlineargs.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,11 @@ if Sys.isunix()
6565
exename = `$(Base.julia_cmd()) --startup-file=no --color=no`
6666
outp = Base.PipeEndpoint()
6767
errp = Base.PipeEndpoint()
68-
p = run(`$exename -e 'sleep(20)'`, devnull, outp, errp, wait=false)
69-
sleep(1.0) # allow Julia to start
68+
p = run(`$exename -e 'sleep(20)'`, devnull, devnull, errp, wait=false)
69+
sleep(5.0) # allow Julia to start
7070
Base.kill(p, Base.SIGQUIT)
7171
wait(p)
72-
close(outp.in); close(errp.in)
73-
out_s = read(outp, String)
74-
err_s = read(errp, String)
72+
err_s = readchomp(errp)
7573
@test Base.process_signaled(p) && p.termsignal == Base.SIGQUIT
7674
@test occursin("==== Thread ", err_s)
7775
@test occursin("==== Done", err_s)

0 commit comments

Comments
 (0)