[Bug libfortran/82233] [6/7/8 Regression] execute_command_line causes program to stop when command fails (or does not exist)
clyon at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Oct 26 08:47:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82233
--- Comment #24 from Christophe Lyon <clyon at gcc dot gnu.org> ---
(In reply to Thomas Koenig from comment #21)
> [...]
> but I am not sure that waitpid is available on all systems;
> this is more likely to break things than fix things.
>
I tried simpler things (just calling wait()), but since you have this concern,
I agree it's not worth pursuing.
> What you could to to reduce the amount of noise that you see is
> sleep for a second; just insert
>
> CALL SLEEP(1)
>
> before the END statement of the test case, locally in your tree.
> This could help. I don't want to do this for everybody (test times
> being long enough as they are), but for most cases, this should
> be enough.
For the time being, it's much simpler for me to handle the 127 return code in
my testcase execution wrapper.
Thanks for the help.
More information about the Gcc-bugs
mailing list