summaryrefslogtreecommitdiff
path: root/tests/libtest
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-09-08 17:37:25 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-09-08 17:37:25 +0200
commitab213d60edbeca0e3225aa6edc9a9595096a5aba (patch)
tree330506a340f4b45ac4d34a23ce4a2dade3a91e5c /tests/libtest
parent17fcdf6a310d4c80762455ee9d5e4f52bd55c809 (diff)
downloadcurl-ab213d60edbeca0e3225aa6edc9a9595096a5aba.tar.gz
libtest: fix build errors
Follow-up from 17fcdf6a310d4c8076
Diffstat (limited to 'tests/libtest')
-rw-r--r--tests/libtest/lib1592.c6
-rw-r--r--tests/libtest/lib583.c9
2 files changed, 10 insertions, 5 deletions
diff --git a/tests/libtest/lib1592.c b/tests/libtest/lib1592.c
index ce0892be2..34901d20e 100644
--- a/tests/libtest/lib1592.c
+++ b/tests/libtest/lib1592.c
@@ -44,6 +44,7 @@ int test(char *URL)
CURLM *multiHandle = NULL;
CURL *curl = NULL;
CURLcode res = CURLE_OK;
+ CURLMcode mres;
int timeout;
global_init(CURL_GLOBAL_ALL);
@@ -97,10 +98,11 @@ int test(char *URL)
/* Start measuring how long it takes to remove the handle. */
fprintf(stderr, "curl_multi_remove_handle()...\n");
start_test_timing();
- res = curl_multi_remove_handle(multiHandle, curl);
- if(res) {
+ mres = curl_multi_remove_handle(multiHandle, curl);
+ if(mres) {
fprintf(stderr, "curl_multi_remove_handle() failed, "
"with code %d\n", (int)res);
+ res = TEST_ERR_MULTI;
goto test_cleanup;
}
fprintf(stderr, "curl_multi_remove_handle() succeeded\n");
diff --git a/tests/libtest/lib583.c b/tests/libtest/lib583.c
index 3e2fe3867..4c667ce9b 100644
--- a/tests/libtest/lib583.c
+++ b/tests/libtest/lib583.c
@@ -36,6 +36,7 @@ int test(char *URL)
CURLM *multiHandle = NULL;
CURL *curl = NULL;
CURLcode res = CURLE_OK;
+ CURLMcode mres = CURLE_OK;
global_init(CURL_GLOBAL_ALL);
@@ -65,10 +66,12 @@ int test(char *URL)
fprintf(stderr, "curl_multi_perform() succeeded\n");
fprintf(stderr, "curl_multi_remove_handle()...\n");
- res = curl_multi_remove_handle(multiHandle, curl);
- if(res)
+ mres = curl_multi_remove_handle(multiHandle, curl);
+ if(mres) {
fprintf(stderr, "curl_multi_remove_handle() failed, "
- "with code %d\n", (int)res);
+ "with code %d\n", (int)mres);
+ res = TEST_ERR_MULTI;
+ }
else
fprintf(stderr, "curl_multi_remove_handle() succeeded\n");