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 b3ae51c commit b7b1ab5
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 b7b1ab5

Please sign in to comment.