aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib1500.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libtest/lib1500.c')
-rw-r--r--tests/libtest/lib1500.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/libtest/lib1500.c b/tests/libtest/lib1500.c
index c36545c52..784bdb2a2 100644
--- a/tests/libtest/lib1500.c
+++ b/tests/libtest/lib1500.c
@@ -54,12 +54,18 @@ int test(char *URL)
abort_on_test_timeout();
while(still_running) {
- res = curl_multi_wait(multi, NULL, 0, TEST_HANG_TIMEOUT);
+ int num;
+ res = curl_multi_wait(multi, NULL, 0, TEST_HANG_TIMEOUT, &num);
if (res != CURLM_OK) {
printf("curl_multi_wait() returned %d\n", res);
res = -1;
goto test_cleanup;
}
+ if (num != 1) {
+ printf("curl_multi_wait() returned on %d handle(s), expected 1\n", num);
+ res = -1;
+ goto test_cleanup;
+ }
abort_on_test_timeout();