Get test 2032 working when using valgrind
authorFabian Keil <fk@fabiankeil.de>
Sun, 18 Nov 2012 21:42:04 +0000 (22:42 +0100)
committerKamil Dudka <kdudka@redhat.com>
Mon, 19 Nov 2012 12:36:28 +0000 (13:36 +0100)
If curl_multi_fdset() sets maxfd to -1, the socket detection
loop is skipped and thus !found_new_socket is no cause for alarm.

tests/libtest/libntlmconnect.c

index cef3306..fd64e5f 100644 (file)
@@ -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;