diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-12-07 12:40:32 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-12-07 12:40:40 +0100 |
commit | 0eefd20ba370509d93fb7b0220e6d1c5739efac5 (patch) | |
tree | 9d3d33e14d8862b061b23a41b4c2bc90616fe636 /src/testzzuf/test_put.c | |
parent | 22c08b5fd71091e84247f43bd36ce08184736f17 (diff) | |
download | libmicrohttpd-0eefd20ba370509d93fb7b0220e6d1c5739efac5.tar.gz libmicrohttpd-0eefd20ba370509d93fb7b0220e6d1c5739efac5.zip |
add build option to compile MHD without threads
Diffstat (limited to 'src/testzzuf/test_put.c')
-rw-r--r-- | src/testzzuf/test_put.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/testzzuf/test_put.c b/src/testzzuf/test_put.c index cfe12dee..63518ba8 100644 --- a/src/testzzuf/test_put.c +++ b/src/testzzuf/test_put.c | |||
@@ -353,8 +353,11 @@ main (int argc, char *const *argv) | |||
353 | (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0; | 353 | (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0; |
354 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) | 354 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) |
355 | return 2; | 355 | return 2; |
356 | errorCount += testInternalPut (); | 356 | if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_THREADS)) |
357 | errorCount += testMultithreadedPut (); | 357 | { |
358 | errorCount += testInternalPut (); | ||
359 | errorCount += testMultithreadedPut (); | ||
360 | } | ||
358 | errorCount += testExternalPut (); | 361 | errorCount += testExternalPut (); |
359 | if (errorCount != 0) | 362 | if (errorCount != 0) |
360 | fprintf (stderr, "Error (code: %u)\n", errorCount); | 363 | fprintf (stderr, "Error (code: %u)\n", errorCount); |