[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 116/411: libtest: fix build errors
From: |
gnunet |
Subject: |
[gnurl] 116/411: libtest: fix build errors |
Date: |
Wed, 13 Jan 2021 01:18:51 +0100 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit ab213d60edbeca0e3225aa6edc9a9595096a5aba
Author: Daniel Stenberg <daniel@haxx.se>
AuthorDate: Tue Sep 8 17:37:25 2020 +0200
libtest: fix build errors
Follow-up from 17fcdf6a310d4c8076
---
tests/libtest/lib1592.c | 6 ++++--
tests/libtest/lib583.c | 9 ++++++---
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");
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnurl] 106/411: tests/libtests: remove test 1900 and 2033, (continued)
- [gnurl] 106/411: tests/libtests: remove test 1900 and 2033, gnunet, 2021/01/12
- [gnurl] 82/411: wildcard: strip "curl_" prefix from private symbols, gnunet, 2021/01/12
- [gnurl] 73/411: CI/azure: MQTT is now enabled by default, gnunet, 2021/01/12
- [gnurl] 107/411: libtest: remove lib1541 leftovers, gnunet, 2021/01/12
- [gnurl] 99/411: build: drop support for building with Watcom, gnunet, 2021/01/12
- [gnurl] 108/411: cmake: make HTTP_ONLY also disable MQTT, gnunet, 2021/01/12
- [gnurl] 100/411: curl:parallel_transfers: make sure retry readds the transfer, gnunet, 2021/01/12
- [gnurl] 95/411: tests: Add tests for new --help, gnunet, 2021/01/12
- [gnurl] 75/411: win32: drop support for WinSock version 1, require version 2, gnunet, 2021/01/12
- [gnurl] 92/411: RELEASE-NOTES: synced, gnunet, 2021/01/12
- [gnurl] 116/411: libtest: fix build errors,
gnunet <=
- [gnurl] 109/411: FAQ: refreshed some very old language, gnunet, 2021/01/12
- [gnurl] 90/411: CMake: remove explicit `CMAKE_ANSI_CFLAGS`, gnunet, 2021/01/12
- [gnurl] 76/411: telnet.c: depend on static requirement of WinSock version 2, gnunet, 2021/01/12
- [gnurl] 97/411: curl: in retry output don't call all problems "transient", gnunet, 2021/01/12
- [gnurl] 79/411: schannel: make it 'struct Curl_schannel*', gnunet, 2021/01/12
- [gnurl] 88/411: scripts/delta: add diffstat summary, gnunet, 2021/01/12
- [gnurl] 117/411: lib583: fix enum mixup, gnunet, 2021/01/12
- [gnurl] 114/411: RELEASE-NOTES: synced, gnunet, 2021/01/12
- [gnurl] 120/411: base64: also build for pop3 and imap, gnunet, 2021/01/12
- [gnurl] 89/411: libssh2: pass on the error from ssh_force_knownhost_key_type, gnunet, 2021/01/12