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.
This commit is contained in:
@@ -81,8 +81,7 @@ int test(char *URL)
|
||||
|
||||
curl_multi_add_handle(mhandle, handle);
|
||||
|
||||
while(CURLM_CALL_MULTI_PERFORM ==
|
||||
curl_multi_perform(mhandle, &still_running));
|
||||
curl_multi_perform(mhandle, &still_running);
|
||||
|
||||
while(still_running) {
|
||||
static struct timeval timeout = /* 100 ms */ { 0, 100000L };
|
||||
@@ -108,8 +107,7 @@ int test(char *URL)
|
||||
goto test_cleanup;
|
||||
}
|
||||
else {
|
||||
while(CURLM_CALL_MULTI_PERFORM ==
|
||||
curl_multi_perform(mhandle, &still_running));
|
||||
curl_multi_perform(mhandle, &still_running);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user