mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-05 19:35:52 +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:
@@ -22,6 +22,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <support/check.h>
|
||||
#include <time.h>
|
||||
|
||||
static void *
|
||||
@@ -31,10 +32,7 @@ delayed_exit_thread (void *seconds_as_ptr)
|
||||
struct timespec delay = { seconds, 0 };
|
||||
struct timespec remaining = { 0 };
|
||||
if (nanosleep (&delay, &remaining) != 0)
|
||||
{
|
||||
printf ("error: nanosleep: %m\n");
|
||||
exit (1);
|
||||
}
|
||||
FAIL_EXIT1 ("nanosleep: %m");
|
||||
/* Exit the process sucessfully. */
|
||||
exit (0);
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user