aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_put_chunked.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-09-23 14:18:06 +0000
committerChristian Grothoff <christian@grothoff.org>2016-09-23 14:18:06 +0000
commit011d784f6c8d6c305e29bee1374a240ab9e4d7c7 (patch)
treed0edfed88a9d7fc92a4ef487f41007f0887d6f8f /src/testcurl/test_put_chunked.c
parentc63ac7db4ebc38713aa5d5e2edf52c27200003d8 (diff)
downloadlibmicrohttpd-011d784f6c8d6c305e29bee1374a240ab9e4d7c7.tar.gz
libmicrohttpd-011d784f6c8d6c305e29bee1374a240ab9e4d7c7.zip
add return value checks for a few more system calls in testcases and examples
Diffstat (limited to 'src/testcurl/test_put_chunked.c')
-rw-r--r--src/testcurl/test_put_chunked.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/testcurl/test_put_chunked.c b/src/testcurl/test_put_chunked.c
index a20ea3c8..c0105afa 100644
--- a/src/testcurl/test_put_chunked.c
+++ b/src/testcurl/test_put_chunked.c
@@ -397,7 +397,11 @@ testExternalPut ()
397 } 397 }
398 tv.tv_sec = 0; 398 tv.tv_sec = 0;
399 tv.tv_usec = 1000; 399 tv.tv_usec = 1000;
400 select (maxposixs + 1, &rs, &ws, &es, &tv); 400 if (-1 == select (maxposixs + 1, &rs, &ws, &es, &tv))
401 {
402 if (EINTR != errno)
403 abort ();
404 }
401 curl_multi_perform (multi, &running); 405 curl_multi_perform (multi, &running);
402 if (running == 0) 406 if (running == 0)
403 { 407 {
@@ -410,7 +414,8 @@ testExternalPut ()
410 printf ("%s failed at %s:%d: `%s'\n", 414 printf ("%s failed at %s:%d: `%s'\n",
411 "curl_multi_perform", 415 "curl_multi_perform",
412 __FILE__, 416 __FILE__,
413 __LINE__, curl_easy_strerror (msg->data.result)); 417 __LINE__,
418 curl_easy_strerror (msg->data.result));
414 curl_multi_remove_handle (multi, c); 419 curl_multi_remove_handle (multi, c);
415 curl_multi_cleanup (multi); 420 curl_multi_cleanup (multi);
416 curl_easy_cleanup (c); 421 curl_easy_cleanup (c);