mirror of
https://github.com/curl/curl.git
synced 2026-08-25 03:43:31 +03:00
tests: rename more CURLcode variables to result
For consistency. Also: - one remaining in `src/tool_writeout.c`. - replace casting an `int` to `CURLcode`. - lib758: rename `CURLMcode` `result` to `mresult`. - move literals to the right side of if expressions. Follow-up tod0dc6e2ec0#20426 Follow-up to56f600ec23Closes #20432
This commit is contained in:
parent
26c39d8df1
commit
2da1bbca96
33 changed files with 307 additions and 303 deletions
|
|
@ -389,28 +389,28 @@ test_cleanup:
|
|||
|
||||
static CURLcode test_lib530(const char *URL)
|
||||
{
|
||||
CURLcode rc;
|
||||
CURLcode result;
|
||||
/* rerun the same transfer multiple times and make it fail in different
|
||||
callback calls */
|
||||
rc = testone(URL, 0, 0); /* no callback fails */
|
||||
if(rc)
|
||||
curl_mfprintf(stderr, "%s FAILED: %d\n", t530_tag(), rc);
|
||||
result = testone(URL, 0, 0); /* no callback fails */
|
||||
if(result)
|
||||
curl_mfprintf(stderr, "%s FAILED: %d\n", t530_tag(), result);
|
||||
|
||||
rc = testone(URL, 1, 0); /* fail 1st call to timer callback */
|
||||
if(!rc)
|
||||
curl_mfprintf(stderr, "%s FAILED: %d\n", t530_tag(), rc);
|
||||
result = testone(URL, 1, 0); /* fail 1st call to timer callback */
|
||||
if(!result)
|
||||
curl_mfprintf(stderr, "%s FAILED: %d\n", t530_tag(), result);
|
||||
|
||||
rc = testone(URL, 2, 0); /* fail 2nd call to timer callback */
|
||||
if(!rc)
|
||||
curl_mfprintf(stderr, "%s FAILED: %d\n", t530_tag(), rc);
|
||||
result = testone(URL, 2, 0); /* fail 2nd call to timer callback */
|
||||
if(!result)
|
||||
curl_mfprintf(stderr, "%s FAILED: %d\n", t530_tag(), result);
|
||||
|
||||
rc = testone(URL, 0, 1); /* fail 1st call to socket callback */
|
||||
if(!rc)
|
||||
curl_mfprintf(stderr, "%s FAILED: %d\n", t530_tag(), rc);
|
||||
result = testone(URL, 0, 1); /* fail 1st call to socket callback */
|
||||
if(!result)
|
||||
curl_mfprintf(stderr, "%s FAILED: %d\n", t530_tag(), result);
|
||||
|
||||
rc = testone(URL, 0, 2); /* fail 2nd call to socket callback */
|
||||
if(!rc)
|
||||
curl_mfprintf(stderr, "%s FAILED: %d\n", t530_tag(), rc);
|
||||
result = testone(URL, 0, 2); /* fail 2nd call to socket callback */
|
||||
if(!result)
|
||||
curl_mfprintf(stderr, "%s FAILED: %d\n", t530_tag(), result);
|
||||
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue