[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 07/11: tests: fixed compiler warnings on W3
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 07/11: tests: fixed compiler warnings on W32 |
Date: |
Sun, 26 May 2019 23:46:51 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit eb622eb2cbae5d628bd489ff5aee8a657f1e4f31
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sun May 26 18:30:40 2019 +0300
tests: fixed compiler warnings on W32
---
src/testcurl/test_get.c | 4 +++-
src/testcurl/test_put.c | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/testcurl/test_get.c b/src/testcurl/test_get.c
index cc8b5396..793a8f30 100644
--- a/src/testcurl/test_get.c
+++ b/src/testcurl/test_get.c
@@ -474,8 +474,10 @@ testExternalGet ()
}
tv.tv_sec = 0;
tv.tv_usec = 1000;
+#ifdef MHD_POSIX_SOCKETS
if (maxsock > maxposixs)
maxposixs = maxsock;
+#endif /* MHD_POSIX_SOCKETS */
if (-1 == select (maxposixs + 1, &rs, &ws, &es, &tv))
{
#ifdef MHD_POSIX_SOCKETS
@@ -483,7 +485,7 @@ testExternalGet ()
abort ();
#else
if (WSAEINVAL != WSAGetLastError() || 0 != rs.fd_count || 0 !=
ws.fd_count || 0 != es.fd_count)
- abort ();
+ _exit (99);
Sleep (1000);
#endif
}
diff --git a/src/testcurl/test_put.c b/src/testcurl/test_put.c
index 0c5e797e..fd56e2b2 100644
--- a/src/testcurl/test_put.c
+++ b/src/testcurl/test_put.c
@@ -459,8 +459,10 @@ curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer);
MHD_stop_daemon (d);
return 4096;
}
+#ifdef MHD_POSIX_SOCKETS
if (maxsock > maxposixs)
maxposixs = maxsock;
+#endif /* MHD_POSIX_SOCKETS */
tv.tv_sec = 0;
tv.tv_usec = 1000;
if (-1 == select (maxposixs + 1, &rs, &ws, &es, &tv))
@@ -470,7 +472,7 @@ curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer);
abort ();
#else
if (WSAEINVAL != WSAGetLastError() || 0 != rs.fd_count || 0 !=
ws.fd_count || 0 != es.fd_count)
- abort ();
+ _exit (99);
Sleep (1000);
#endif
}
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [libmicrohttpd] branch master updated (29e20dfb -> 3544e5c1), gnunet, 2019/05/26
- [GNUnet-SVN] [libmicrohttpd] 02/11: perf_get_concurrent: fixed exhausting of local ports on multi-core machines, gnunet, 2019/05/26
- [GNUnet-SVN] [libmicrohttpd] 01/11: test_concurrent_stop: heavily rewritten, added watchdog, avoided exhausting of ports, fixed resource leakage., gnunet, 2019/05/26
- [GNUnet-SVN] [libmicrohttpd] 04/11: curl tests: fixed detection of "11" marker on w32, gnunet, 2019/05/26
- [GNUnet-SVN] [libmicrohttpd] 05/11: test_https_get_select: fixed usage of uninitialized variable, gnunet, 2019/05/26
- [GNUnet-SVN] [libmicrohttpd] 03/11: perf_get_concurrent11: added new test, fixed "11" mode detection, gnunet, 2019/05/26
- [GNUnet-SVN] [libmicrohttpd] 06/11: tests: properly setup CURL options, gnunet, 2019/05/26
- [GNUnet-SVN] [libmicrohttpd] 07/11: tests: fixed compiler warnings on W32,
gnunet <=
- [GNUnet-SVN] [libmicrohttpd] 10/11: ChangeLog updated, gnunet, 2019/05/26
- [GNUnet-SVN] [libmicrohttpd] 09/11: daemon: flush stderr after each write for debug builds, gnunet, 2019/05/26
- [GNUnet-SVN] [libmicrohttpd] 11/11: test_shutdown_*: fixed for W32, gnunet, 2019/05/26
- [GNUnet-SVN] [libmicrohttpd] 08/11: test_get: implemented more detailed reports, gnunet, 2019/05/26