aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_quiesce.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_quiesce.c')
-rw-r--r--src/testcurl/test_quiesce.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/testcurl/test_quiesce.c b/src/testcurl/test_quiesce.c
index d02dccc1..4e9012ff 100644
--- a/src/testcurl/test_quiesce.c
+++ b/src/testcurl/test_quiesce.c
@@ -39,6 +39,13 @@
39#include <sys/socket.h> 39#include <sys/socket.h>
40#endif 40#endif
41 41
42#if defined(CPU_COUNT) && (CPU_COUNT+0) < 2
43#undef CPU_COUNT
44#endif
45#if !defined(CPU_COUNT)
46#define CPU_COUNT 2
47#endif
48
42static int oneone; 49static int oneone;
43 50
44 51
@@ -436,16 +443,16 @@ main (int argc, char *const *argv)
436 return 2; 443 return 2;
437 errorCount += testGet (MHD_USE_SELECT_INTERNALLY, 0, 0); 444 errorCount += testGet (MHD_USE_SELECT_INTERNALLY, 0, 0);
438 errorCount += testGet (MHD_USE_THREAD_PER_CONNECTION, 0, 0); 445 errorCount += testGet (MHD_USE_THREAD_PER_CONNECTION, 0, 0);
439 errorCount += testGet (MHD_USE_SELECT_INTERNALLY, 4, 0); 446 errorCount += testGet (MHD_USE_SELECT_INTERNALLY, CPU_COUNT, 0);
440 errorCount += testExternalGet (); 447 errorCount += testExternalGet ();
441#ifndef WINDOWS 448#ifndef WINDOWS
442 errorCount += testGet (MHD_USE_SELECT_INTERNALLY, 0, MHD_USE_POLL); 449 errorCount += testGet (MHD_USE_SELECT_INTERNALLY, 0, MHD_USE_POLL);
443 errorCount += testGet (MHD_USE_THREAD_PER_CONNECTION, 0, MHD_USE_POLL); 450 errorCount += testGet (MHD_USE_THREAD_PER_CONNECTION, 0, MHD_USE_POLL);
444 errorCount += testGet (MHD_USE_SELECT_INTERNALLY, 4, MHD_USE_POLL); 451 errorCount += testGet (MHD_USE_SELECT_INTERNALLY, CPU_COUNT, MHD_USE_POLL);
445#endif 452#endif
446#if EPOLL_SUPPORT 453#if EPOLL_SUPPORT
447 errorCount += testGet (MHD_USE_SELECT_INTERNALLY, 0, MHD_USE_EPOLL_LINUX_ONLY); 454 errorCount += testGet (MHD_USE_SELECT_INTERNALLY, 0, MHD_USE_EPOLL_LINUX_ONLY);
448 errorCount += testGet (MHD_USE_SELECT_INTERNALLY, 4, MHD_USE_EPOLL_LINUX_ONLY); 455 errorCount += testGet (MHD_USE_SELECT_INTERNALLY, CPU_COUNT, MHD_USE_EPOLL_LINUX_ONLY);
449#endif 456#endif
450 if (errorCount != 0) 457 if (errorCount != 0)
451 fprintf (stderr, "Error (code: %u)\n", errorCount); 458 fprintf (stderr, "Error (code: %u)\n", errorCount);