diff options
author | Florian Weimer <fweimer@redhat.com> | 2016-12-31 12:20:49 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2016-12-31 18:51:15 +0100 |
commit | 039c5a05cc905e3d48392e7ea9f85e339b7c068b (patch) | |
tree | 2d69efafb74a99d94b13b98eaab09d9e1d0e505c /support/xwaitpid.c | |
parent | 5707a64d9462001f9c7c2e02d3f52cf8b0181658 (diff) | |
download | glibc-039c5a05cc905e3d48392e7ea9f85e339b7c068b.zip glibc-039c5a05cc905e3d48392e7ea9f85e339b7c068b.tar.gz glibc-039c5a05cc905e3d48392e7ea9f85e339b7c068b.tar.bz2 |
support: Use support_record_failure consistently
This causes more test programs to link in the support_record_failure
function, which triggers an early call to mmap from an ELF
constructor, but this should not have side effects intefering
with the functionality actually under test (unlike, say, a call
to malloc).
Diffstat (limited to 'support/xwaitpid.c')
-rw-r--r-- | support/xwaitpid.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/support/xwaitpid.c b/support/xwaitpid.c index 5a6e540..f577535 100644 --- a/support/xwaitpid.c +++ b/support/xwaitpid.c @@ -20,6 +20,7 @@ #include <stdio.h> #include <stdlib.h> +#include <support/check.h> #include <sys/wait.h> int @@ -27,9 +28,6 @@ xwaitpid (int pid, int *status, int flags) { pid_t result = waitpid (pid, status, flags); if (result < 0) - { - printf ("error: waitpid: %m\n"); - exit (1); - } + FAIL_EXIT1 ("waitpid: %m\n"); return result; } |