mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-29 04:09:31 +03:00
Make testsuite compatible with W32 again
This commit is contained in:
18 files changed
+127
-11
No files matched your search
@@ -172,10 +172,16 @@ testInternalSelectGet ()
|
||||
{
|
||||
#ifdef MHD_POSIX_SOCKETS
|
||||
if (EINTR != errno)
|
||||
#endif /* MHD_POSIX_SOCKETS */
|
||||
abort ();
|
||||
#else
|
||||
if (WSAEINVAL != WSAGetLastError() || 0 != rs.fd_count || 0 != ws.fd_count || 0 != es.fd_count)
|
||||
abort ();
|
||||
Sleep (1000);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
else
|
||||
sleep (1000);
|
||||
curl_multi_perform (multi, &running);
|
||||
if (running == 0)
|
||||
{
|
||||
|
||||
@@ -198,10 +198,16 @@ testExternalGet (int flags)
|
||||
{
|
||||
#ifdef MHD_POSIX_SOCKETS
|
||||
if (EINTR != errno)
|
||||
#endif /* MHD_POSIX_SOCKETS */
|
||||
abort ();
|
||||
#else
|
||||
if (WSAEINVAL != WSAGetLastError() || 0 != rs.fd_count || 0 != ws.fd_count || 0 != es.fd_count)
|
||||
abort ();
|
||||
Sleep (1000);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
else
|
||||
sleep (1000);
|
||||
curl_multi_perform (multi, &running);
|
||||
if (running == 0)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user