From fb48e2050b558c908c7740d1c4f20fd17fdf7fe6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 26 Jun 2011 23:12:08 +0200 Subject: libtests: stop checking for CURLM_CALL_MULTI_PERFORM CURLM_CALL_MULTI_PERFORM stopped being a valid return code from curl_multi_perform back in 7.20.0. All the libcurl tests are ajusted to this and no longer check for this return code. Makes them simpler. --- tests/libtest/lib504.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'tests/libtest/lib504.c') diff --git a/tests/libtest/lib504.c b/tests/libtest/lib504.c index f45ac256b..e83c66167 100644 --- a/tests/libtest/lib504.c +++ b/tests/libtest/lib504.c @@ -106,15 +106,11 @@ int test(char *URL) fprintf(stderr, "curl_multi_perform()\n"); - ret = CURLM_CALL_MULTI_PERFORM; - - while (ret == CURLM_CALL_MULTI_PERFORM) { - ret = curl_multi_perform(m, &running); - if (tutil_tvdiff(tutil_tvnow(), mp_start) > - MULTI_PERFORM_HANG_TIMEOUT) { - mp_timedout = TRUE; - break; - } + ret = curl_multi_perform(m, &running); + if (tutil_tvdiff(tutil_tvnow(), mp_start) > + MULTI_PERFORM_HANG_TIMEOUT) { + mp_timedout = TRUE; + break; } if (mp_timedout) break; -- cgit v1.2.3