From 039c5a05cc905e3d48392e7ea9f85e339b7c068b Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Sat, 31 Dec 2016 12:20:49 +0100 Subject: 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). --- support/xfork.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'support/xfork.c') diff --git a/support/xfork.c b/support/xfork.c index 4b2ce91..6a2d9cc 100644 --- a/support/xfork.c +++ b/support/xfork.c @@ -20,15 +20,13 @@ #include #include +#include pid_t xfork (void) { pid_t result = fork (); if (result < 0) - { - printf ("error: fork: %m\n"); - exit (1); - } + FAIL_EXIT1 ("fork: %m"); return result; } -- cgit v1.1