1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-10-06 06:59:25 +00:00

test: Ignore SIGPIPE in tests

This commit is contained in:
David Drysdale
2016-01-15 09:57:23 +00:00
parent 86beb81892
commit c9579872c8

View File

@ -1,3 +1,4 @@
#include <signal.h>
#include <stdlib.h>
#include "ares-test.h"
@ -17,6 +18,8 @@ int main(int argc, char* argv[]) {
WORD wVersionRequested = MAKEWORD(2, 2);
WSADATA wsaData;
WSAStartup(wVersionRequested, &wsaData);
#else
signal(SIGPIPE, SIG_IGN);
#endif
int rc = RUN_ALL_TESTS();