aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_large_put.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_large_put.c')
-rw-r--r--src/testcurl/test_large_put.c63
1 files changed, 33 insertions, 30 deletions
diff --git a/src/testcurl/test_large_put.c b/src/testcurl/test_large_put.c
index b7a87c8f..f4c767cc 100644
--- a/src/testcurl/test_large_put.c
+++ b/src/testcurl/test_large_put.c
@@ -605,47 +605,50 @@ main (int argc, char *const *argv)
605 put_buffer = alloc_init (PUT_SIZE); 605 put_buffer = alloc_init (PUT_SIZE);
606 if (NULL == put_buffer) 606 if (NULL == put_buffer)
607 return 99; 607 return 99;
608 lastErr = testPutInternalThread (0);
609 if (verbose && 0 != lastErr)
610 fprintf (stderr, "Error during testing with internal thread with select().\n");
611 errorCount += lastErr;
612 lastErr = testPutThreadPerConn (0);
613 if (verbose && 0 != lastErr)
614 fprintf (stderr, "Error during testing with internal thread per connection with select().\n");
615 errorCount += lastErr;
616 lastErr = testPutThreadPool (0);
617 if (verbose && 0 != lastErr)
618 fprintf (stderr, "Error during testing with thread pool per connection with select().\n");
619 errorCount += lastErr;
620 lastErr = testPutExternal (); 608 lastErr = testPutExternal ();
621 if (verbose && 0 != lastErr) 609 if (verbose && 0 != lastErr)
622 fprintf (stderr, "Error during testing with external select().\n"); 610 fprintf (stderr, "Error during testing with external select().\n");
623 errorCount += lastErr; 611 errorCount += lastErr;
624 if (MHD_is_feature_supported(MHD_FEATURE_POLL)) 612 if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_THREADS))
625 { 613 {
626 lastErr = testPutInternalThread (MHD_USE_POLL); 614 lastErr = testPutInternalThread (0);
627 if (verbose && 0 != lastErr) 615 if (verbose && 0 != lastErr)
628 fprintf (stderr, "Error during testing with internal thread with poll().\n"); 616 fprintf (stderr, "Error during testing with internal thread with select().\n");
629 errorCount += lastErr; 617 errorCount += lastErr;
630 lastErr = testPutThreadPerConn (MHD_USE_POLL); 618 lastErr = testPutThreadPerConn (0);
631 if (verbose && 0 != lastErr)
632 fprintf (stderr, "Error during testing with internal thread per connection with poll().\n");
633 errorCount += lastErr;
634 lastErr = testPutThreadPool (MHD_USE_POLL);
635 if (verbose && 0 != lastErr)
636 fprintf (stderr, "Error during testing with thread pool per connection with poll().\n");
637 errorCount += lastErr;
638 }
639 if (MHD_is_feature_supported(MHD_FEATURE_EPOLL))
640 {
641 lastErr = testPutInternalThread (MHD_USE_EPOLL);
642 if (verbose && 0 != lastErr) 619 if (verbose && 0 != lastErr)
643 fprintf (stderr, "Error during testing with internal thread with epoll.\n"); 620 fprintf (stderr, "Error during testing with internal thread per connection with select().\n");
644 errorCount += lastErr; 621 errorCount += lastErr;
645 lastErr = testPutThreadPool (MHD_USE_EPOLL); 622 lastErr = testPutThreadPool (0);
646 if (verbose && 0 != lastErr) 623 if (verbose && 0 != lastErr)
647 fprintf (stderr, "Error during testing with thread pool per connection with epoll.\n"); 624 fprintf (stderr, "Error during testing with thread pool per connection with select().\n");
648 errorCount += lastErr; 625 errorCount += lastErr;
626 if (MHD_is_feature_supported(MHD_FEATURE_POLL))
627 {
628 lastErr = testPutInternalThread (MHD_USE_POLL);
629 if (verbose && 0 != lastErr)
630 fprintf (stderr, "Error during testing with internal thread with poll().\n");
631 errorCount += lastErr;
632 lastErr = testPutThreadPerConn (MHD_USE_POLL);
633 if (verbose && 0 != lastErr)
634 fprintf (stderr, "Error during testing with internal thread per connection with poll().\n");
635 errorCount += lastErr;
636 lastErr = testPutThreadPool (MHD_USE_POLL);
637 if (verbose && 0 != lastErr)
638 fprintf (stderr, "Error during testing with thread pool per connection with poll().\n");
639 errorCount += lastErr;
640 }
641 if (MHD_is_feature_supported(MHD_FEATURE_EPOLL))
642 {
643 lastErr = testPutInternalThread (MHD_USE_EPOLL);
644 if (verbose && 0 != lastErr)
645 fprintf (stderr, "Error during testing with internal thread with epoll.\n");
646 errorCount += lastErr;
647 lastErr = testPutThreadPool (MHD_USE_EPOLL);
648 if (verbose && 0 != lastErr)
649 fprintf (stderr, "Error during testing with thread pool per connection with epoll.\n");
650 errorCount += lastErr;
651 }
649 } 652 }
650 free (put_buffer); 653 free (put_buffer);
651 if (errorCount != 0) 654 if (errorCount != 0)