aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-04-15 01:19:44 +0000
committerChristian Grothoff <christian@grothoff.org>2015-04-15 01:19:44 +0000
commit1a11c2c680e4cce9a63842db24d8e8b2194e7178 (patch)
treeca48dfa8b293c3cdcf266fd97fb97eec16d06d16 /src
parent639bfd972debb7408386bc8977a88618178fb37c (diff)
downloadlibmicrohttpd-1a11c2c680e4cce9a63842db24d8e8b2194e7178.tar.gz
libmicrohttpd-1a11c2c680e4cce9a63842db24d8e8b2194e7178.zip
fix #3753
Diffstat (limited to 'src')
-rw-r--r--src/testcurl/perf_get.c3
-rw-r--r--src/testcurl/perf_get_concurrent.c3
-rw-r--r--src/testcurl/test_concurrent_stop.c3
-rw-r--r--src/testcurl/test_get.c3
-rw-r--r--src/testcurl/test_get_response_cleanup.c3
-rw-r--r--src/testcurl/test_get_sendfile.c3
-rw-r--r--src/testcurl/test_iplimit.c5
-rw-r--r--src/testcurl/test_large_put.c5
-rw-r--r--src/testcurl/test_long_header.c5
-rw-r--r--src/testcurl/test_parse_cookies.c6
-rw-r--r--src/testcurl/test_post.c6
-rw-r--r--src/testcurl/test_post_loop.c3
-rw-r--r--src/testcurl/test_postform.c3
-rw-r--r--src/testcurl/test_process_arguments.c6
-rw-r--r--src/testcurl/test_process_headers.c8
-rw-r--r--src/testcurl/test_put.c3
-rw-r--r--src/testcurl/test_quiesce.c13
-rw-r--r--src/testcurl/test_timeout.c6
-rw-r--r--src/testcurl/test_urlparse.c3
-rw-r--r--src/testzzuf/test_get.c6
-rw-r--r--src/testzzuf/test_long_header.c6
-rw-r--r--src/testzzuf/test_post.c6
-rw-r--r--src/testzzuf/test_post_form.c4
-rw-r--r--src/testzzuf/test_put.c6
-rw-r--r--src/testzzuf/test_put_large.c6
25 files changed, 66 insertions, 58 deletions
diff --git a/src/testcurl/perf_get.c b/src/testcurl/perf_get.c
index fc856be5..9b1b416e 100644
--- a/src/testcurl/perf_get.c
+++ b/src/testcurl/perf_get.c
@@ -502,7 +502,8 @@ main (int argc, char *const *argv)
502 unsigned int errorCount = 0; 502 unsigned int errorCount = 0;
503 int port = 1081; 503 int port = 1081;
504 504
505 oneone = NULL != strstr (argv[0], "11"); 505 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
506 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
506 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 507 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
507 return 2; 508 return 2;
508 response = MHD_create_response_from_buffer (strlen ("/hello_world"), 509 response = MHD_create_response_from_buffer (strlen ("/hello_world"),
diff --git a/src/testcurl/perf_get_concurrent.c b/src/testcurl/perf_get_concurrent.c
index 17e5e614..28559ee0 100644
--- a/src/testcurl/perf_get_concurrent.c
+++ b/src/testcurl/perf_get_concurrent.c
@@ -336,7 +336,8 @@ main (int argc, char *const *argv)
336 unsigned int errorCount = 0; 336 unsigned int errorCount = 0;
337 int port = 1081; 337 int port = 1081;
338 338
339 oneone = NULL != strstr (argv[0], "11"); 339 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
340 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
340 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 341 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
341 return 2; 342 return 2;
342 response = MHD_create_response_from_buffer (strlen ("/hello_world"), 343 response = MHD_create_response_from_buffer (strlen ("/hello_world"),
diff --git a/src/testcurl/test_concurrent_stop.c b/src/testcurl/test_concurrent_stop.c
index 8ce16560..60cc98db 100644
--- a/src/testcurl/test_concurrent_stop.c
+++ b/src/testcurl/test_concurrent_stop.c
@@ -211,7 +211,8 @@ main (int argc, char *const *argv)
211 unsigned int errorCount = 0; 211 unsigned int errorCount = 0;
212 int port = 1081; 212 int port = 1081;
213 213
214 oneone = NULL != strstr (argv[0], "11"); 214 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
215 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
215 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 216 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
216 return 2; 217 return 2;
217 response = MHD_create_response_from_buffer (strlen ("/hello_world"), 218 response = MHD_create_response_from_buffer (strlen ("/hello_world"),
diff --git a/src/testcurl/test_get.c b/src/testcurl/test_get.c
index 0717685a..9ed40e2a 100644
--- a/src/testcurl/test_get.c
+++ b/src/testcurl/test_get.c
@@ -606,7 +606,8 @@ main (int argc, char *const *argv)
606{ 606{
607 unsigned int errorCount = 0; 607 unsigned int errorCount = 0;
608 608
609 oneone = NULL != strstr (argv[0], "11"); 609 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
610 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
610 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 611 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
611 return 2; 612 return 2;
612 errorCount += testInternalGet (0); 613 errorCount += testInternalGet (0);
diff --git a/src/testcurl/test_get_response_cleanup.c b/src/testcurl/test_get_response_cleanup.c
index 65e4abc9..f8817464 100644
--- a/src/testcurl/test_get_response_cleanup.c
+++ b/src/testcurl/test_get_response_cleanup.c
@@ -290,7 +290,8 @@ main (int argc, char *const *argv)
290{ 290{
291 unsigned int errorCount = 0; 291 unsigned int errorCount = 0;
292 292
293 oneone = NULL != strstr (argv[0], "11"); 293 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
294 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
294 errorCount += testInternalGet (); 295 errorCount += testInternalGet ();
295 errorCount += testMultithreadedGet (); 296 errorCount += testMultithreadedGet ();
296 errorCount += testMultithreadedPoolGet (); 297 errorCount += testMultithreadedPoolGet ();
diff --git a/src/testcurl/test_get_sendfile.c b/src/testcurl/test_get_sendfile.c
index b00918e7..f0853b27 100644
--- a/src/testcurl/test_get_sendfile.c
+++ b/src/testcurl/test_get_sendfile.c
@@ -482,7 +482,8 @@ main (int argc, char *const *argv)
482 } 482 }
483 fwrite (TESTSTR, strlen (TESTSTR), 1, f); 483 fwrite (TESTSTR, strlen (TESTSTR), 1, f);
484 fclose (f); 484 fclose (f);
485 oneone = NULL != strstr (argv[0], "11"); 485 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
486 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
486 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 487 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
487 return 2; 488 return 2;
488 errorCount += testInternalGet (); 489 errorCount += testInternalGet ();
diff --git a/src/testcurl/test_iplimit.c b/src/testcurl/test_iplimit.c
index 813fb46b..813fc8b4 100644
--- a/src/testcurl/test_iplimit.c
+++ b/src/testcurl/test_iplimit.c
@@ -19,7 +19,7 @@
19*/ 19*/
20 20
21/** 21/**
22 * @file daemontest_get.c 22 * @file test_iplimit.c
23 * @brief Testcase for libmicrohttpd GET operations 23 * @brief Testcase for libmicrohttpd GET operations
24 * TODO: test parsing of query 24 * TODO: test parsing of query
25 * @author Christian Grothoff 25 * @author Christian Grothoff
@@ -300,7 +300,8 @@ main (int argc, char *const *argv)
300{ 300{
301 unsigned int errorCount = 0; 301 unsigned int errorCount = 0;
302 302
303 oneone = NULL != strstr (argv[0], "11"); 303 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
304 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
304 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 305 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
305 return 2; 306 return 2;
306 errorCount |= testMultithreadedGet (); 307 errorCount |= testMultithreadedGet ();
diff --git a/src/testcurl/test_large_put.c b/src/testcurl/test_large_put.c
index 2875939a..ec0022ee 100644
--- a/src/testcurl/test_large_put.c
+++ b/src/testcurl/test_large_put.c
@@ -19,7 +19,7 @@
19*/ 19*/
20 20
21/** 21/**
22 * @file daemontest_large_put.c 22 * @file test_large_put.c
23 * @brief Testcase for libmicrohttpd PUT operations 23 * @brief Testcase for libmicrohttpd PUT operations
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 */ 25 */
@@ -460,7 +460,8 @@ main (int argc, char *const *argv)
460{ 460{
461 unsigned int errorCount = 0; 461 unsigned int errorCount = 0;
462 462
463 oneone = NULL != strstr (argv[0], "11"); 463 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
464 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
464 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 465 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
465 return 2; 466 return 2;
466 put_buffer = malloc (PUT_SIZE); 467 put_buffer = malloc (PUT_SIZE);
diff --git a/src/testcurl/test_long_header.c b/src/testcurl/test_long_header.c
index 9969354f..e1e024b1 100644
--- a/src/testcurl/test_long_header.c
+++ b/src/testcurl/test_long_header.c
@@ -19,7 +19,7 @@
19*/ 19*/
20 20
21/** 21/**
22 * @file daemontest_long_header.c 22 * @file test_long_header.c
23 * @brief Testcase for libmicrohttpd handling of very long headers 23 * @brief Testcase for libmicrohttpd handling of very long headers
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 */ 25 */
@@ -240,7 +240,8 @@ main (int argc, char *const *argv)
240{ 240{
241 unsigned int errorCount = 0; 241 unsigned int errorCount = 0;
242 242
243 oneone = NULL != strstr (argv[0], "11"); 243 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
244 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
244 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 245 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
245 return 2; 246 return 2;
246 errorCount += testLongUrlGet (); 247 errorCount += testLongUrlGet ();
diff --git a/src/testcurl/test_parse_cookies.c b/src/testcurl/test_parse_cookies.c
index 9e645919..7d70867e 100644
--- a/src/testcurl/test_parse_cookies.c
+++ b/src/testcurl/test_parse_cookies.c
@@ -20,7 +20,7 @@
20*/ 20*/
21 21
22/** 22/**
23 * @file daemontest_parse_cookies.c 23 * @file test_parse_cookies.c
24 * @brief Testcase for HTTP cookie parsing 24 * @brief Testcase for HTTP cookie parsing
25 * @author Christian Grothoff 25 * @author Christian Grothoff
26 */ 26 */
@@ -233,13 +233,13 @@ testExternalGet ()
233} 233}
234 234
235 235
236
237int 236int
238main (int argc, char *const *argv) 237main (int argc, char *const *argv)
239{ 238{
240 unsigned int errorCount = 0; 239 unsigned int errorCount = 0;
241 240
242 oneone = NULL != strstr (argv[0], "11"); 241 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
242 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
243 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 243 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
244 return 2; 244 return 2;
245 errorCount += testExternalGet (); 245 errorCount += testExternalGet ();
diff --git a/src/testcurl/test_post.c b/src/testcurl/test_post.c
index d2f4d332..49bf30ae 100644
--- a/src/testcurl/test_post.c
+++ b/src/testcurl/test_post.c
@@ -19,7 +19,7 @@
19*/ 19*/
20 20
21/** 21/**
22 * @file test_postx.c 22 * @file test_post.c
23 * @brief Testcase for libmicrohttpd POST operations using URL-encoding 23 * @brief Testcase for libmicrohttpd POST operations using URL-encoding
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 */ 25 */
@@ -632,12 +632,14 @@ testMultithreadedPostCancel()
632 return result; 632 return result;
633} 633}
634 634
635
635int 636int
636main (int argc, char *const *argv) 637main (int argc, char *const *argv)
637{ 638{
638 unsigned int errorCount = 0; 639 unsigned int errorCount = 0;
639 640
640 oneone = NULL != strstr (argv[0], "11"); 641 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
642 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
641 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 643 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
642 return 2; 644 return 2;
643 errorCount += testMultithreadedPostCancel (); 645 errorCount += testMultithreadedPostCancel ();
diff --git a/src/testcurl/test_post_loop.c b/src/testcurl/test_post_loop.c
index 3e1d2005..fe8d25c9 100644
--- a/src/testcurl/test_post_loop.c
+++ b/src/testcurl/test_post_loop.c
@@ -480,7 +480,8 @@ main (int argc, char *const *argv)
480{ 480{
481 unsigned int errorCount = 0; 481 unsigned int errorCount = 0;
482 482
483 oneone = NULL != strstr (argv[0], "11"); 483 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
484 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
484 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 485 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
485 return 2; 486 return 2;
486 start_time = now(); 487 start_time = now();
diff --git a/src/testcurl/test_postform.c b/src/testcurl/test_postform.c
index beee1f9f..450eb6ff 100644
--- a/src/testcurl/test_postform.c
+++ b/src/testcurl/test_postform.c
@@ -483,7 +483,8 @@ main (int argc, char *const *argv)
483 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); 483 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
484#endif 484#endif
485#endif 485#endif
486 oneone = NULL != strstr (argv[0], "11"); 486 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
487 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
487 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 488 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
488 return 2; 489 return 2;
489 errorCount += testInternalPost (); 490 errorCount += testInternalPost ();
diff --git a/src/testcurl/test_process_arguments.c b/src/testcurl/test_process_arguments.c
index d2d994f8..a3e58418 100644
--- a/src/testcurl/test_process_arguments.c
+++ b/src/testcurl/test_process_arguments.c
@@ -19,7 +19,7 @@
19*/ 19*/
20 20
21/** 21/**
22 * @file daemontest_process_arguments.c 22 * @file test_process_arguments.c
23 * @brief Testcase for HTTP URI arguments 23 * @brief Testcase for HTTP URI arguments
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 */ 25 */
@@ -232,13 +232,13 @@ testExternalGet ()
232} 232}
233 233
234 234
235
236int 235int
237main (int argc, char *const *argv) 236main (int argc, char *const *argv)
238{ 237{
239 unsigned int errorCount = 0; 238 unsigned int errorCount = 0;
240 239
241 oneone = NULL != strstr (argv[0], "11"); 240 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
241 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
242 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 242 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
243 return 2; 243 return 2;
244 errorCount += testExternalGet (); 244 errorCount += testExternalGet ();
diff --git a/src/testcurl/test_process_headers.c b/src/testcurl/test_process_headers.c
index 1703a275..4a219fb4 100644
--- a/src/testcurl/test_process_headers.c
+++ b/src/testcurl/test_process_headers.c
@@ -20,7 +20,7 @@
20*/ 20*/
21 21
22/** 22/**
23 * @file daemontest_process_headers.c 23 * @file test_process_headers.c
24 * @brief Testcase for HTTP header access 24 * @brief Testcase for HTTP header access
25 * @author Christian Grothoff 25 * @author Christian Grothoff
26 */ 26 */
@@ -422,10 +422,8 @@ main (int argc, char *const *argv)
422{ 422{
423 unsigned int errorCount = 0; 423 unsigned int errorCount = 0;
424 424
425 oneone = NULL != strstr (argv[0], "11"); 425 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
426 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 426 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
427 return 2;
428 errorCount += testInternalGet ();
429 errorCount += testMultithreadedGet (); 427 errorCount += testMultithreadedGet ();
430 errorCount += testMultithreadedPoolGet (); 428 errorCount += testMultithreadedPoolGet ();
431 errorCount += testExternalGet (); 429 errorCount += testExternalGet ();
diff --git a/src/testcurl/test_put.c b/src/testcurl/test_put.c
index 06a0ec3b..fe1d8dbe 100644
--- a/src/testcurl/test_put.c
+++ b/src/testcurl/test_put.c
@@ -425,7 +425,8 @@ main (int argc, char *const *argv)
425{ 425{
426 unsigned int errorCount = 0; 426 unsigned int errorCount = 0;
427 427
428 oneone = NULL != strstr (argv[0], "11"); 428 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
429 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
429 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 430 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
430 return 2; 431 return 2;
431 errorCount += testInternalPut (); 432 errorCount += testInternalPut ();
diff --git a/src/testcurl/test_quiesce.c b/src/testcurl/test_quiesce.c
index 49a70a6e..5a35d56b 100644
--- a/src/testcurl/test_quiesce.c
+++ b/src/testcurl/test_quiesce.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of libmicrohttpd 2 This file is part of libmicrohttpd
3 Copyright (C) 2013 Christian Grothoff 3 Copyright (C) 2013, 2015 Christian Grothoff
4 4
5 libmicrohttpd is free software; you can redistribute it and/or modify 5 libmicrohttpd is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -17,9 +17,8 @@
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. 18 Boston, MA 02111-1307, USA.
19*/ 19*/
20
21/** 20/**
22 * @file daemontest_quiesce.c 21 * @file test_quiesce.c
23 * @brief Testcase for libmicrohttpd quiescing 22 * @brief Testcase for libmicrohttpd quiescing
24 * @author Christian Grothoff 23 * @author Christian Grothoff
25 */ 24 */
@@ -47,8 +46,6 @@
47#define CPU_COUNT 2 46#define CPU_COUNT 2
48#endif 47#endif
49 48
50static int oneone;
51
52 49
53struct CBC 50struct CBC
54{ 51{
@@ -171,10 +168,7 @@ setupCURL (void *cbc)
171 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 168 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1);
172 curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, 150L); 169 curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, 150L);
173 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, 150L); 170 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, 150L);
174 if (oneone) 171 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
175 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
176 else
177 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
178 /* NOTE: use of CONNECTTIMEOUT without also 172 /* NOTE: use of CONNECTTIMEOUT without also
179 setting NOSIGNAL results in really weird 173 setting NOSIGNAL results in really weird
180 crashes on my system!*/ 174 crashes on my system!*/
@@ -439,7 +433,6 @@ main (int argc, char *const *argv)
439{ 433{
440 unsigned int errorCount = 0; 434 unsigned int errorCount = 0;
441 435
442 oneone = NULL != strstr (argv[0], "11");
443 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 436 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
444 return 2; 437 return 2;
445 errorCount += testGet (MHD_USE_SELECT_INTERNALLY, 0, 0); 438 errorCount += testGet (MHD_USE_SELECT_INTERNALLY, 0, 0);
diff --git a/src/testcurl/test_timeout.c b/src/testcurl/test_timeout.c
index e4e1ccff..006c1a80 100644
--- a/src/testcurl/test_timeout.c
+++ b/src/testcurl/test_timeout.c
@@ -19,7 +19,7 @@
19*/ 19*/
20 20
21/** 21/**
22 * @file daemontest_timeout.c 22 * @file test_timeout.c
23 * @brief Testcase for libmicrohttpd PUT operations 23 * @brief Testcase for libmicrohttpd PUT operations
24 * @author Matthias Wachs 24 * @author Matthias Wachs
25 */ 25 */
@@ -271,13 +271,13 @@ testWithTimeout ()
271} 271}
272 272
273 273
274
275int 274int
276main (int argc, char *const *argv) 275main (int argc, char *const *argv)
277{ 276{
278 unsigned int errorCount = 0; 277 unsigned int errorCount = 0;
279 278
280 oneone = NULL != strstr (argv[0], "11"); 279 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
280 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
281 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 281 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
282 return 16; 282 return 16;
283 errorCount += testWithoutTimeout (); 283 errorCount += testWithoutTimeout ();
diff --git a/src/testcurl/test_urlparse.c b/src/testcurl/test_urlparse.c
index 07ddce9b..c48bff20 100644
--- a/src/testcurl/test_urlparse.c
+++ b/src/testcurl/test_urlparse.c
@@ -179,7 +179,8 @@ main (int argc, char *const *argv)
179{ 179{
180 unsigned int errorCount = 0; 180 unsigned int errorCount = 0;
181 181
182 oneone = NULL != strstr (argv[0], "11"); 182 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
183 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
183 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 184 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
184 return 2; 185 return 2;
185 errorCount += testInternalGet (0); 186 errorCount += testInternalGet (0);
diff --git a/src/testzzuf/test_get.c b/src/testzzuf/test_get.c
index 50fcb2c1..47cbe120 100644
--- a/src/testzzuf/test_get.c
+++ b/src/testzzuf/test_get.c
@@ -19,7 +19,7 @@
19*/ 19*/
20 20
21/** 21/**
22 * @file daemontest_get.c 22 * @file test_get.c
23 * @brief Testcase for libmicrohttpd GET operations 23 * @brief Testcase for libmicrohttpd GET operations
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 */ 25 */
@@ -295,13 +295,13 @@ testExternalGet ()
295} 295}
296 296
297 297
298
299int 298int
300main (int argc, char *const *argv) 299main (int argc, char *const *argv)
301{ 300{
302 unsigned int errorCount = 0; 301 unsigned int errorCount = 0;
303 302
304 oneone = NULL != strstr (argv[0], "11"); 303 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
304 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
305 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 305 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
306 return 2; 306 return 2;
307 errorCount += testInternalGet (); 307 errorCount += testInternalGet ();
diff --git a/src/testzzuf/test_long_header.c b/src/testzzuf/test_long_header.c
index 94088d00..20041380 100644
--- a/src/testzzuf/test_long_header.c
+++ b/src/testzzuf/test_long_header.c
@@ -19,7 +19,7 @@
19*/ 19*/
20 20
21/** 21/**
22 * @file daemontest_long_header.c 22 * @file test_long_header.c
23 * @brief Testcase for libmicrohttpd handling of very long headers 23 * @brief Testcase for libmicrohttpd handling of very long headers
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 */ 25 */
@@ -215,12 +215,14 @@ testLongHeaderGet ()
215 return 0; 215 return 0;
216} 216}
217 217
218
218int 219int
219main (int argc, char *const *argv) 220main (int argc, char *const *argv)
220{ 221{
221 unsigned int errorCount = 0; 222 unsigned int errorCount = 0;
222 223
223 oneone = NULL != strstr (argv[0], "11"); 224 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
225 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
224 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 226 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
225 return 2; 227 return 2;
226 errorCount += testLongUrlGet (); 228 errorCount += testLongUrlGet ();
diff --git a/src/testzzuf/test_post.c b/src/testzzuf/test_post.c
index 22701f09..632609fb 100644
--- a/src/testzzuf/test_post.c
+++ b/src/testzzuf/test_post.c
@@ -19,7 +19,7 @@
19*/ 19*/
20 20
21/** 21/**
22 * @file daemontest_post.c 22 * @file test_post.c
23 * @brief Testcase for libmicrohttpd POST operations using URL-encoding 23 * @brief Testcase for libmicrohttpd POST operations using URL-encoding
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 */ 25 */
@@ -375,13 +375,13 @@ testExternalPost ()
375} 375}
376 376
377 377
378
379int 378int
380main (int argc, char *const *argv) 379main (int argc, char *const *argv)
381{ 380{
382 unsigned int errorCount = 0; 381 unsigned int errorCount = 0;
383 382
384 oneone = NULL != strstr (argv[0], "11"); 383 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
384 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
385 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 385 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
386 return 2; 386 return 2;
387 errorCount += testInternalPost (); 387 errorCount += testInternalPost ();
diff --git a/src/testzzuf/test_post_form.c b/src/testzzuf/test_post_form.c
index b03c4c81..3e2cdffe 100644
--- a/src/testzzuf/test_post_form.c
+++ b/src/testzzuf/test_post_form.c
@@ -391,13 +391,13 @@ testExternalPost ()
391} 391}
392 392
393 393
394
395int 394int
396main (int argc, char *const *argv) 395main (int argc, char *const *argv)
397{ 396{
398 unsigned int errorCount = 0; 397 unsigned int errorCount = 0;
399 398
400 oneone = NULL != strstr (argv[0], "11"); 399 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
400 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
401 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 401 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
402 return 2; 402 return 2;
403 errorCount += testInternalPost (); 403 errorCount += testInternalPost ();
diff --git a/src/testzzuf/test_put.c b/src/testzzuf/test_put.c
index d93b50e6..c6240c44 100644
--- a/src/testzzuf/test_put.c
+++ b/src/testzzuf/test_put.c
@@ -19,7 +19,7 @@
19*/ 19*/
20 20
21/** 21/**
22 * @file daemontest_put.c 22 * @file test_put.c
23 * @brief Testcase for libmicrohttpd PUT operations 23 * @brief Testcase for libmicrohttpd PUT operations
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 */ 25 */
@@ -342,13 +342,13 @@ testExternalPut ()
342} 342}
343 343
344 344
345
346int 345int
347main (int argc, char *const *argv) 346main (int argc, char *const *argv)
348{ 347{
349 unsigned int errorCount = 0; 348 unsigned int errorCount = 0;
350 349
351 oneone = NULL != strstr (argv[0], "11"); 350 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
351 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
352 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 352 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
353 return 2; 353 return 2;
354 errorCount += testInternalPut (); 354 errorCount += testInternalPut ();
diff --git a/src/testzzuf/test_put_large.c b/src/testzzuf/test_put_large.c
index ae95ef03..1fdc92a9 100644
--- a/src/testzzuf/test_put_large.c
+++ b/src/testzzuf/test_put_large.c
@@ -19,7 +19,7 @@
19*/ 19*/
20 20
21/** 21/**
22 * @file daemontest_large_put.c 22 * @file test_put_large.c
23 * @brief Testcase for libmicrohttpd PUT operations 23 * @brief Testcase for libmicrohttpd PUT operations
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 */ 25 */
@@ -360,13 +360,13 @@ testExternalPut ()
360} 360}
361 361
362 362
363
364int 363int
365main (int argc, char *const *argv) 364main (int argc, char *const *argv)
366{ 365{
367 unsigned int errorCount = 0; 366 unsigned int errorCount = 0;
368 367
369 oneone = NULL != strstr (argv[0], "11"); 368 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
369 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
370 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 370 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
371 return 2; 371 return 2;
372 put_buffer = malloc (PUT_SIZE); 372 put_buffer = malloc (PUT_SIZE);