aboutsummaryrefslogtreecommitdiff
path: root/src/testzzuf/test_post_form.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_post_form.c
parent22c08b5fd71091e84247f43bd36ce08184736f17 (diff)
downloadlibmicrohttpd-0eefd20ba370509d93fb7b0220e6d1c5739efac5.tar.gz
libmicrohttpd-0eefd20ba370509d93fb7b0220e6d1c5739efac5.zip
add build option to compile MHD without threads
Diffstat (limited to 'src/testzzuf/test_post_form.c')
-rw-r--r--src/testzzuf/test_post_form.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/testzzuf/test_post_form.c b/src/testzzuf/test_post_form.c
index d4e01c2b..571c9d99 100644
--- a/src/testzzuf/test_post_form.c
+++ b/src/testzzuf/test_post_form.c
@@ -405,8 +405,11 @@ main (int argc, char *const *argv)
405 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0; 405 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
406 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 406 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
407 return 2; 407 return 2;
408 errorCount += testInternalPost (); 408 if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_THREADS))
409 errorCount += testMultithreadedPost (); 409 {
410 errorCount += testInternalPost ();
411 errorCount += testMultithreadedPost ();
412 }
410 errorCount += testExternalPost (); 413 errorCount += testExternalPost ();
411 if (errorCount != 0) 414 if (errorCount != 0)
412 fprintf (stderr, "Error (code: %u)\n", errorCount); 415 fprintf (stderr, "Error (code: %u)\n", errorCount);