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:
@ -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();
|
||||
|
Reference in New Issue
Block a user