diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-10-29 23:36:00 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-10-29 23:36:00 +0300 |
commit | 21ce9bfad3b5537cf0da7b4764a03b4a80dfd48f (patch) | |
tree | 37d8aefcf0065704b830ea180114a59db6b80378 /src/testcurl/test_get_sendfile.c | |
parent | a4320556aa74cab71188150015153bd0cb663616 (diff) | |
download | libmicrohttpd-21ce9bfad3b5537cf0da7b4764a03b4a80dfd48f.tar.gz libmicrohttpd-21ce9bfad3b5537cf0da7b4764a03b4a80dfd48f.zip |
Make testsuite compatible with W32 again
Diffstat (limited to 'src/testcurl/test_get_sendfile.c')
-rw-r--r-- | src/testcurl/test_get_sendfile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testcurl/test_get_sendfile.c b/src/testcurl/test_get_sendfile.c index 652423d4..de51e1d0 100644 --- a/src/testcurl/test_get_sendfile.c +++ b/src/testcurl/test_get_sendfile.c | |||
@@ -433,8 +433,14 @@ testExternalGet () | |||
433 | tv.tv_usec = 1000; | 433 | tv.tv_usec = 1000; |
434 | if (-1 == select (maxposixs + 1, &rs, &ws, &es, &tv)) | 434 | if (-1 == select (maxposixs + 1, &rs, &ws, &es, &tv)) |
435 | { | 435 | { |
436 | #ifdef MHD_POSIX_SOCKETS | ||
436 | if (EINTR != errno) | 437 | if (EINTR != errno) |
437 | abort (); | 438 | abort (); |
439 | #else | ||
440 | if (WSAEINVAL != WSAGetLastError() || 0 != rs.fd_count || 0 != ws.fd_count || 0 != es.fd_count) | ||
441 | abort (); | ||
442 | Sleep (1000); | ||
443 | #endif | ||
438 | } | 444 | } |
439 | curl_multi_perform (multi, &running); | 445 | curl_multi_perform (multi, &running); |
440 | if (running == 0) | 446 | if (running == 0) |