diff options
author | 2016-12-31 12:20:49 +0100 | |
---|---|---|
committer | 2016-12-31 18:51:15 +0100 | |
commit | 039c5a05cc905e3d48392e7ea9f85e339b7c068b (patch) | |
tree | 2d69efafb74a99d94b13b98eaab09d9e1d0e505c /support/xsocket.c | |
parent | support: Helper functions for entering namespaces (diff) | |
download | glibc-039c5a05cc905e3d48392e7ea9f85e339b7c068b.tar.xz glibc-039c5a05cc905e3d48392e7ea9f85e339b7c068b.zip |
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/xsocket.c')
-rw-r--r-- | support/xsocket.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/support/xsocket.c b/support/xsocket.c index 9ebe63fc73..268a825c1d 100644 --- a/support/xsocket.c +++ b/support/xsocket.c @@ -27,10 +27,6 @@ xsocket (int domain, int type, int protocol) { int fd = socket (domain, type, protocol); if (fd < 0) - { - support_record_failure (); - printf ("error: socket (%d, %d, %d): %m\n", domain, type, protocol); - exit (1); - } + FAIL_EXIT1 ("socket (%d, %d, %d): %m\n", domain, type, protocol); return fd; } |