mirror of
https://github.com/curl/curl.git
synced 2026-07-27 01:27:15 +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
|
|
@ -35,7 +35,7 @@ static CURLcode test_unit2605(const char *arg)
|
|||
curl_off_t filesize;
|
||||
curl_off_t start;
|
||||
curl_off_t size;
|
||||
CURLcode res;
|
||||
CURLcode result;
|
||||
};
|
||||
|
||||
int i;
|
||||
|
|
@ -77,15 +77,16 @@ static CURLcode test_unit2605(const char *arg)
|
|||
for(i = 0; list[i].r; i++) {
|
||||
curl_off_t start;
|
||||
curl_off_t size;
|
||||
CURLcode res;
|
||||
CURLcode result;
|
||||
curl_mprintf("%u: '%s' (file size: %" FMT_OFF_T ")\n", i, list[i].r,
|
||||
list[i].filesize);
|
||||
res = Curl_ssh_range(curl, list[i].r, list[i].filesize, &start, &size);
|
||||
if(res != list[i].res) {
|
||||
curl_mprintf("... returned %d\n", res);
|
||||
result = Curl_ssh_range(curl, list[i].r, list[i].filesize, &start,
|
||||
&size);
|
||||
if(result != list[i].result) {
|
||||
curl_mprintf("... returned %d\n", result);
|
||||
unitfail++;
|
||||
}
|
||||
if(!res) {
|
||||
if(!result) {
|
||||
if(start != list[i].start) {
|
||||
curl_mprintf("... start (%" FMT_OFF_T ") was not %" FMT_OFF_T " \n",
|
||||
start, list[i].start);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue