aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_get_sendfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_get_sendfile.c')
-rw-r--r--src/testcurl/test_get_sendfile.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/testcurl/test_get_sendfile.c b/src/testcurl/test_get_sendfile.c
index 7651ff56..d2913e67 100644
--- a/src/testcurl/test_get_sendfile.c
+++ b/src/testcurl/test_get_sendfile.c
@@ -147,7 +147,7 @@ testInternalGet ()
147 { 147 {
148 const union MHD_DaemonInfo *dinfo; 148 const union MHD_DaemonInfo *dinfo;
149 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 149 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
150 if ((NULL == dinfo) ||(0 == dinfo->port) ) 150 if ((NULL == dinfo) || (0 == dinfo->port) )
151 { 151 {
152 MHD_stop_daemon (d); return 32; 152 MHD_stop_daemon (d); return 32;
153 } 153 }
@@ -219,7 +219,7 @@ testMultithreadedGet ()
219 { 219 {
220 const union MHD_DaemonInfo *dinfo; 220 const union MHD_DaemonInfo *dinfo;
221 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 221 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
222 if ((NULL == dinfo) ||(0 == dinfo->port) ) 222 if ((NULL == dinfo) || (0 == dinfo->port) )
223 { 223 {
224 MHD_stop_daemon (d); return 32; 224 MHD_stop_daemon (d); return 32;
225 } 225 }
@@ -291,7 +291,7 @@ testMultithreadedPoolGet ()
291 { 291 {
292 const union MHD_DaemonInfo *dinfo; 292 const union MHD_DaemonInfo *dinfo;
293 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 293 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
294 if ((NULL == dinfo) ||(0 == dinfo->port) ) 294 if ((NULL == dinfo) || (0 == dinfo->port) )
295 { 295 {
296 MHD_stop_daemon (d); return 32; 296 MHD_stop_daemon (d); return 32;
297 } 297 }
@@ -377,7 +377,7 @@ testExternalGet ()
377 { 377 {
378 const union MHD_DaemonInfo *dinfo; 378 const union MHD_DaemonInfo *dinfo;
379 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 379 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
380 if ((NULL == dinfo) ||(0 == dinfo->port) ) 380 if ((NULL == dinfo) || (0 == dinfo->port) )
381 { 381 {
382 MHD_stop_daemon (d); return 32; 382 MHD_stop_daemon (d); return 32;
383 } 383 }
@@ -450,9 +450,10 @@ testExternalGet ()
450 if (EINTR != errno) 450 if (EINTR != errno)
451 abort (); 451 abort ();
452#else 452#else
453 if ((WSAEINVAL != WSAGetLastError ()) ||(0 != rs.fd_count) ||(0 != 453 if ((WSAEINVAL != WSAGetLastError ()) || (0 != rs.fd_count) || (0 !=
454 ws.fd_count) 454 ws.
455 ||(0 != es.fd_count) ) 455 fd_count)
456 || (0 != es.fd_count) )
456 abort (); 457 abort ();
457 Sleep (1000); 458 Sleep (1000);
458#endif 459#endif
@@ -539,7 +540,7 @@ testUnknownPortGet ()
539 { 540 {
540 const union MHD_DaemonInfo *dinfo; 541 const union MHD_DaemonInfo *dinfo;
541 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 542 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
542 if ((NULL == dinfo) ||(0 == dinfo->port) ) 543 if ((NULL == dinfo) || (0 == dinfo->port) )
543 { 544 {
544 MHD_stop_daemon (d); return 32; 545 MHD_stop_daemon (d); return 32;
545 } 546 }
@@ -591,7 +592,7 @@ main (int argc, char *const *argv)
591 FILE *f; 592 FILE *f;
592 (void) argc; /* Unused. Silent compiler warning. */ 593 (void) argc; /* Unused. Silent compiler warning. */
593 594
594 if ((NULL == argv)||(0 == argv[0])) 595 if ((NULL == argv) || (0 == argv[0]))
595 return 99; 596 return 99;
596 oneone = has_in_name (argv[0], "11"); 597 oneone = has_in_name (argv[0], "11");
597 598