aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/perf_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/perf_get.c')
-rw-r--r--src/testcurl/perf_get.c33
1 files changed, 18 insertions, 15 deletions
diff --git a/src/testcurl/perf_get.c b/src/testcurl/perf_get.c
index ac6a23f3..b5d754a8 100644
--- a/src/testcurl/perf_get.c
+++ b/src/testcurl/perf_get.c
@@ -589,22 +589,25 @@ main (int argc, char *const *argv)
589 "/hello_world", 589 "/hello_world",
590 MHD_RESPMEM_MUST_COPY); 590 MHD_RESPMEM_MUST_COPY);
591 errorCount += testExternalGet (port++); 591 errorCount += testExternalGet (port++);
592 errorCount += testInternalGet (port++, MHD_USE_AUTO); 592 if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_THREADS))
593 errorCount += testMultithreadedGet (port++, MHD_USE_AUTO);
594 errorCount += testMultithreadedPoolGet (port++, MHD_USE_AUTO);
595 errorCount += testInternalGet (port++, 0);
596 errorCount += testMultithreadedGet (port++, 0);
597 errorCount += testMultithreadedPoolGet (port++, 0);
598 if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_POLL))
599 { 593 {
600 errorCount += testInternalGet(port++, MHD_USE_POLL); 594 errorCount += testInternalGet (port++, MHD_USE_AUTO);
601 errorCount += testMultithreadedGet(port++, MHD_USE_POLL); 595 errorCount += testMultithreadedGet (port++, MHD_USE_AUTO);
602 errorCount += testMultithreadedPoolGet(port++, MHD_USE_POLL); 596 errorCount += testMultithreadedPoolGet (port++, MHD_USE_AUTO);
603 } 597 errorCount += testInternalGet (port++, 0);
604 if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_EPOLL)) 598 errorCount += testMultithreadedGet (port++, 0);
605 { 599 errorCount += testMultithreadedPoolGet (port++, 0);
606 errorCount += testInternalGet(port++, MHD_USE_EPOLL); 600 if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_POLL))
607 errorCount += testMultithreadedPoolGet(port++, MHD_USE_EPOLL); 601 {
602 errorCount += testInternalGet(port++, MHD_USE_POLL);
603 errorCount += testMultithreadedGet(port++, MHD_USE_POLL);
604 errorCount += testMultithreadedPoolGet(port++, MHD_USE_POLL);
605 }
606 if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_EPOLL))
607 {
608 errorCount += testInternalGet(port++, MHD_USE_EPOLL);
609 errorCount += testMultithreadedPoolGet(port++, MHD_USE_EPOLL);
610 }
608 } 611 }
609 MHD_destroy_response (response); 612 MHD_destroy_response (response);
610 if (errorCount != 0) 613 if (errorCount != 0)