Skip to content

Commit

Permalink
Wait for the process before testing
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Jun 25, 2022
1 parent 178d6f4 commit d78fdad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/cmdlineargs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ function errors_not_signals(cmd::Cmd)
p = run(pipeline(ignorestatus(cmd); stdout=devnull, stderr=devnull))
return errors_not_signals(p)
end
errors_not_signals(p::Base.Process) = process_exited(p) && !Base.process_signaled(p) && !success(p)
function errors_not_signals(p::Base.Process)
wait(p)
return process_exited(p) && !Base.process_signaled(p) && !success(p)
end

let
fn = format_filename("a%d %p %i %L %l %u z")
Expand Down

0 comments on commit d78fdad

Please sign in to comment.