mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
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).
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user