diff options
author | Sara Golemon <sgolemon@fb.com> | 2012-09-15 10:38:52 -0700 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-09-16 19:58:02 +0200 |
commit | b78944146a0670b74be00e189f468adfc5fca5b7 (patch) | |
tree | 5e466784b19e166a1600ec934df0c3e2643da4e6 /tests/libtest/lib1500.c | |
parent | 9b25b00fa3c0d57c9356fbdcec9883a3cdd16c93 (diff) |
curl_multi_wait: Add parameter to return number of active sockets
Minor change to recently introduced function. BC breaking, but since
curl_multi_wait() doesn't exist in any releases that should be fine.
Diffstat (limited to 'tests/libtest/lib1500.c')
-rw-r--r-- | tests/libtest/lib1500.c | 8 |
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(); |