aboutsummaryrefslogtreecommitdiff
path: root/src/testzzuf
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/testzzuf
parent639bfd972debb7408386bc8977a88618178fb37c (diff)
downloadlibmicrohttpd-1a11c2c680e4cce9a63842db24d8e8b2194e7178.tar.gz
libmicrohttpd-1a11c2c680e4cce9a63842db24d8e8b2194e7178.zip
fix #3753
Diffstat (limited to 'src/testzzuf')
-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
6 files changed, 18 insertions, 16 deletions
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);