aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest
diff options
context:
space:
mode:
authorFabian Keil <fk@fabiankeil.de>2012-11-18 22:42:04 +0100
committerKamil Dudka <kdudka@redhat.com>2012-11-19 13:36:28 +0100
commit52af6e69f079f28c137849e783f41d80768bc1be (patch)
tree093d2fde2e616bcf656ab95e5525fc70bb6ea750 /tests/libtest
parent32be348af26352bec0051adcc2f1a718361d9214 (diff)
Get test 2032 working when using valgrind
If curl_multi_fdset() sets maxfd to -1, the socket detection loop is skipped and thus !found_new_socket is no cause for alarm.
Diffstat (limited to 'tests/libtest')
-rw-r--r--tests/libtest/libntlmconnect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libtest/libntlmconnect.c b/tests/libtest/libntlmconnect.c
index cef33069a..fd64e5f84 100644
--- a/tests/libtest/libntlmconnect.c
+++ b/tests/libtest/libntlmconnect.c
@@ -207,7 +207,7 @@ int test(char *url)
}
if (state == NeedSocketForNewHandle) {
- if(!found_new_socket) {
+ if(maxfd != -1 && !found_new_socket) {
fprintf(stderr, "Warning: socket did not open immediately for new "
"handle (trying again)\n");
continue;