From b7b1ab592514b4d03fe81444fc6ae3d6b7357776 Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Sat, 25 Jun 2022 04:52:51 +0000 Subject: [PATCH] Wait for the process before testing --- test/cmdlineargs.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/cmdlineargs.jl b/test/cmdlineargs.jl index 7d2331e14d260..963a12a33376f 100644 --- a/test/cmdlineargs.jl +++ b/test/cmdlineargs.jl @@ -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")