aboutsummaryrefslogtreecommitdiff
path: root/src/testzzuf/test_get.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-12-07 12:40:32 +0100
committerChristian Grothoff <christian@grothoff.org>2018-12-07 12:40:40 +0100
commit0eefd20ba370509d93fb7b0220e6d1c5739efac5 (patch)
tree9d3d33e14d8862b061b23a41b4c2bc90616fe636 /src/testzzuf/test_get.c
parent22c08b5fd71091e84247f43bd36ce08184736f17 (diff)
downloadlibmicrohttpd-0eefd20ba370509d93fb7b0220e6d1c5739efac5.tar.gz
libmicrohttpd-0eefd20ba370509d93fb7b0220e6d1c5739efac5.zip
add build option to compile MHD without threads
Diffstat (limited to 'src/testzzuf/test_get.c')
-rw-r--r--src/testzzuf/test_get.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/testzzuf/test_get.c b/src/testzzuf/test_get.c
index 7e116d09..223b85e5 100644
--- a/src/testzzuf/test_get.c
+++ b/src/testzzuf/test_get.c
@@ -306,8 +306,11 @@ main (int argc, char *const *argv)
306 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0; 306 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
307 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 307 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
308 return 2; 308 return 2;
309 errorCount += testInternalGet (); 309 if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_THREADS))
310 errorCount += testMultithreadedGet (); 310 {
311 errorCount += testInternalGet ();
312 errorCount += testMultithreadedGet ();
313 }
311 errorCount += testExternalGet (); 314 errorCount += testExternalGet ();
312 if (errorCount != 0) 315 if (errorCount != 0)
313 fprintf (stderr, "Error (code: %u)\n", errorCount); 316 fprintf (stderr, "Error (code: %u)\n", errorCount);