mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user