aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_get_chunked.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_get_chunked.c')
-rw-r--r--src/testcurl/test_get_chunked.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/testcurl/test_get_chunked.c b/src/testcurl/test_get_chunked.c
index 9916a902..daf690f1 100644
--- a/src/testcurl/test_get_chunked.c
+++ b/src/testcurl/test_get_chunked.c
@@ -178,6 +178,7 @@ validate (struct CBC cbc, int ebase)
178 return 0; 178 return 0;
179} 179}
180 180
181
181static int 182static int
182testInternalGet () 183testInternalGet ()
183{ 184{
@@ -204,7 +205,7 @@ testInternalGet ()
204 { 205 {
205 const union MHD_DaemonInfo *dinfo; 206 const union MHD_DaemonInfo *dinfo;
206 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 207 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
207 if ((NULL == dinfo) ||(0 == dinfo->port) ) 208 if ((NULL == dinfo) || (0 == dinfo->port) )
208 { 209 {
209 MHD_stop_daemon (d); return 32; 210 MHD_stop_daemon (d); return 32;
210 } 211 }
@@ -237,6 +238,7 @@ testInternalGet ()
237 return validate (cbc, 4); 238 return validate (cbc, 4);
238} 239}
239 240
241
240static int 242static int
241testMultithreadedGet () 243testMultithreadedGet ()
242{ 244{
@@ -264,7 +266,7 @@ testMultithreadedGet ()
264 { 266 {
265 const union MHD_DaemonInfo *dinfo; 267 const union MHD_DaemonInfo *dinfo;
266 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 268 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
267 if ((NULL == dinfo) ||(0 == dinfo->port) ) 269 if ((NULL == dinfo) || (0 == dinfo->port) )
268 { 270 {
269 MHD_stop_daemon (d); return 32; 271 MHD_stop_daemon (d); return 32;
270 } 272 }
@@ -297,6 +299,7 @@ testMultithreadedGet ()
297 return validate (cbc, 64); 299 return validate (cbc, 64);
298} 300}
299 301
302
300static int 303static int
301testMultithreadedPoolGet () 304testMultithreadedPoolGet ()
302{ 305{
@@ -324,7 +327,7 @@ testMultithreadedPoolGet ()
324 { 327 {
325 const union MHD_DaemonInfo *dinfo; 328 const union MHD_DaemonInfo *dinfo;
326 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 329 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
327 if ((NULL == dinfo) ||(0 == dinfo->port) ) 330 if ((NULL == dinfo) || (0 == dinfo->port) )
328 { 331 {
329 MHD_stop_daemon (d); return 32; 332 MHD_stop_daemon (d); return 32;
330 } 333 }
@@ -357,6 +360,7 @@ testMultithreadedPoolGet ()
357 return validate (cbc, 64); 360 return validate (cbc, 64);
358} 361}
359 362
363
360static int 364static int
361testExternalGet () 365testExternalGet ()
362{ 366{
@@ -398,7 +402,7 @@ testExternalGet ()
398 { 402 {
399 const union MHD_DaemonInfo *dinfo; 403 const union MHD_DaemonInfo *dinfo;
400 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 404 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
401 if ((NULL == dinfo) ||(0 == dinfo->port) ) 405 if ((NULL == dinfo) || (0 == dinfo->port) )
402 { 406 {
403 MHD_stop_daemon (d); return 32; 407 MHD_stop_daemon (d); return 32;
404 } 408 }
@@ -468,9 +472,10 @@ testExternalGet ()
468 if (EINTR != errno) 472 if (EINTR != errno)
469 abort (); 473 abort ();
470#else 474#else
471 if ((WSAEINVAL != WSAGetLastError ()) ||(0 != rs.fd_count) ||(0 != 475 if ((WSAEINVAL != WSAGetLastError ()) || (0 != rs.fd_count) || (0 !=
472 ws.fd_count) 476 ws.
473 ||(0 != es.fd_count) ) 477 fd_count)
478 || (0 != es.fd_count) )
474 abort (); 479 abort ();
475 Sleep (1000); 480 Sleep (1000);
476#endif 481#endif
@@ -508,7 +513,6 @@ testExternalGet ()
508} 513}
509 514
510 515
511
512int 516int
513main (int argc, char *const *argv) 517main (int argc, char *const *argv)
514{ 518{