mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-12 12:10:16 +00:00
test-container: print errno when execvp fails
I'm debugging a situation where lots of tests using test-container fail and it's possible knowing errno would help understand why. Reviewed-by: DJ Delorie <dj@redhat.com>
This commit is contained in:
parent
7000651327
commit
083d644d42
@ -1145,7 +1145,7 @@ main (int argc, char **argv)
|
||||
execvp (new_child_exec, new_child_proc);
|
||||
|
||||
/* Or don't run the child? */
|
||||
FAIL_EXIT1 ("Unable to exec %s\n", new_child_exec);
|
||||
FAIL_EXIT1 ("Unable to exec %s: %s\n", new_child_exec, strerror (errno));
|
||||
|
||||
/* Because gcc won't know error () never returns... */
|
||||
exit (EXIT_UNSUPPORTED);
|
||||
|
Loading…
Reference in New Issue
Block a user