test: Ignore SIGPIPE in tests

pull/34/head
David Drysdale 9 years ago
parent 86beb81892
commit c9579872c8
  1. 3
      test/ares-test-main.cc

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

Loading…
Cancel
Save