aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_get_empty.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_get_empty.c')
-rw-r--r--src/testcurl/test_get_empty.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/testcurl/test_get_empty.c b/src/testcurl/test_get_empty.c
index 0fffb37d..79ce49e8 100644
--- a/src/testcurl/test_get_empty.c
+++ b/src/testcurl/test_get_empty.c
@@ -170,7 +170,7 @@ testInternalGet (int poll_flag)
170 { 170 {
171 const union MHD_DaemonInfo *dinfo; 171 const union MHD_DaemonInfo *dinfo;
172 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 172 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
173 if ((NULL == dinfo) ||(0 == dinfo->port) ) 173 if ((NULL == dinfo) || (0 == dinfo->port) )
174 { 174 {
175 MHD_stop_daemon (d); return 32; 175 MHD_stop_daemon (d); return 32;
176 } 176 }
@@ -242,7 +242,7 @@ testMultithreadedGet (int poll_flag)
242 { 242 {
243 const union MHD_DaemonInfo *dinfo; 243 const union MHD_DaemonInfo *dinfo;
244 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 244 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
245 if ((NULL == dinfo) ||(0 == dinfo->port) ) 245 if ((NULL == dinfo) || (0 == dinfo->port) )
246 { 246 {
247 MHD_stop_daemon (d); return 32; 247 MHD_stop_daemon (d); return 32;
248 } 248 }
@@ -314,7 +314,7 @@ testMultithreadedPoolGet (int poll_flag)
314 { 314 {
315 const union MHD_DaemonInfo *dinfo; 315 const union MHD_DaemonInfo *dinfo;
316 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 316 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
317 if ((NULL == dinfo) ||(0 == dinfo->port) ) 317 if ((NULL == dinfo) || (0 == dinfo->port) )
318 { 318 {
319 MHD_stop_daemon (d); return 32; 319 MHD_stop_daemon (d); return 32;
320 } 320 }
@@ -395,7 +395,7 @@ testExternalGet ()
395 { 395 {
396 const union MHD_DaemonInfo *dinfo; 396 const union MHD_DaemonInfo *dinfo;
397 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 397 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
398 if ((NULL == dinfo) ||(0 == dinfo->port) ) 398 if ((NULL == dinfo) || (0 == dinfo->port) )
399 { 399 {
400 MHD_stop_daemon (d); return 32; 400 MHD_stop_daemon (d); return 32;
401 } 401 }
@@ -472,9 +472,10 @@ testExternalGet ()
472 if (EINTR != errno) 472 if (EINTR != errno)
473 abort (); 473 abort ();
474#else 474#else
475 if ((WSAEINVAL != WSAGetLastError ()) ||(0 != rs.fd_count) ||(0 != 475 if ((WSAEINVAL != WSAGetLastError ()) || (0 != rs.fd_count) || (0 !=
476 ws.fd_count) 476 ws.
477 ||(0 != es.fd_count) ) 477 fd_count)
478 || (0 != es.fd_count) )
478 _exit (99); 479 _exit (99);
479 Sleep (1000); 480 Sleep (1000);
480#endif 481#endif
@@ -558,7 +559,7 @@ testUnknownPortGet (int poll_flag)
558 { 559 {
559 const union MHD_DaemonInfo *dinfo; 560 const union MHD_DaemonInfo *dinfo;
560 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 561 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
561 if ((NULL == dinfo) ||(0 == dinfo->port) ) 562 if ((NULL == dinfo) || (0 == dinfo->port) )
562 { 563 {
563 MHD_stop_daemon (d); return 32; 564 MHD_stop_daemon (d); return 32;
564 } 565 }
@@ -631,7 +632,7 @@ testStopRace (int poll_flag)
631 { 632 {
632 const union MHD_DaemonInfo *dinfo; 633 const union MHD_DaemonInfo *dinfo;
633 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 634 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
634 if ((NULL == dinfo) ||(0 == dinfo->port) ) 635 if ((NULL == dinfo) || (0 == dinfo->port) )
635 { 636 {
636 MHD_stop_daemon (d); return 32; 637 MHD_stop_daemon (d); return 32;
637 } 638 }
@@ -721,8 +722,8 @@ curlExcessFound (CURL *c, curl_infotype type, char *data, size_t size,
721 (void) c; /* Unused. Silent compiler warning. */ 722 (void) c; /* Unused. Silent compiler warning. */
722 723
723 if ((CURLINFO_TEXT == type) 724 if ((CURLINFO_TEXT == type)
724 &&(size >= str_size) 725 && (size >= str_size)
725 &&(0 == strncmp (excess_found, data, str_size))) 726 && (0 == strncmp (excess_found, data, str_size)))
726 *(int *) cls = 1; 727 *(int *) cls = 1;
727 return 0; 728 return 0;
728} 729}
@@ -761,7 +762,7 @@ testEmptyGet (int poll_flag)
761 { 762 {
762 const union MHD_DaemonInfo *dinfo; 763 const union MHD_DaemonInfo *dinfo;
763 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 764 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
764 if ((NULL == dinfo) ||(0 == dinfo->port) ) 765 if ((NULL == dinfo) || (0 == dinfo->port) )
765 { 766 {
766 MHD_stop_daemon (d); return 32; 767 MHD_stop_daemon (d); return 32;
767 } 768 }
@@ -812,7 +813,7 @@ main (int argc, char *const *argv)
812 unsigned int test_result = 0; 813 unsigned int test_result = 0;
813 int verbose = 0; 814 int verbose = 0;
814 815
815 if ((NULL == argv)||(0 == argv[0])) 816 if ((NULL == argv) || (0 == argv[0]))
816 return 99; 817 return 99;
817 oneone = has_in_name (argv[0], "11"); 818 oneone = has_in_name (argv[0], "11");
818 verbose = has_param (argc, argv, "-v") || has_param (argc, argv, "--verbose"); 819 verbose = has_param (argc, argv, "-v") || has_param (argc, argv, "--verbose");