[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r37069 - libmicrohttpd/src/testcurl
From: |
gnunet |
Subject: |
[GNUnet-SVN] r37069 - libmicrohttpd/src/testcurl |
Date: |
Sat, 23 Apr 2016 19:34:53 +0200 |
Author: Karlson2k
Date: 2016-04-23 19:34:53 +0200 (Sat, 23 Apr 2016)
New Revision: 37069
Modified:
libmicrohttpd/src/testcurl/perf_get_concurrent.c
Log:
perf_get_concurrent: correctly detect available modes
Modified: libmicrohttpd/src/testcurl/perf_get_concurrent.c
===================================================================
--- libmicrohttpd/src/testcurl/perf_get_concurrent.c 2016-04-23 16:16:03 UTC
(rev 37068)
+++ libmicrohttpd/src/testcurl/perf_get_concurrent.c 2016-04-23 17:34:53 UTC
(rev 37069)
@@ -347,15 +347,17 @@
errorCount += testMultithreadedGet (port++, 0);
errorCount += testMultithreadedPoolGet (port++, 0);
errorCount += testExternalGet (port++);
-#ifndef WINDOWS
- errorCount += testInternalGet (port++, MHD_USE_POLL);
- errorCount += testMultithreadedGet (port++, MHD_USE_POLL);
- errorCount += testMultithreadedPoolGet (port++, MHD_USE_POLL);
-#endif
-#if EPOLL_SUPPORT
- errorCount += testInternalGet (port++, MHD_USE_EPOLL_LINUX_ONLY);
- errorCount += testMultithreadedPoolGet (port++, MHD_USE_EPOLL_LINUX_ONLY);
-#endif
+ if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_POLL))
+ {
+ errorCount += testInternalGet (port++, MHD_USE_POLL);
+ errorCount += testMultithreadedGet (port++, MHD_USE_POLL);
+ errorCount += testMultithreadedPoolGet (port++, MHD_USE_POLL);
+ }
+ if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_EPOLL))
+ {
+ errorCount += testInternalGet (port++, MHD_USE_EPOLL_LINUX_ONLY);
+ errorCount += testMultithreadedPoolGet (port++,
MHD_USE_EPOLL_LINUX_ONLY);
+ }
MHD_destroy_response (response);
if (errorCount != 0)
fprintf (stderr, "Error (code: %u)\n", errorCount);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r37069 - libmicrohttpd/src/testcurl,
gnunet <=