From: Daniel Stenberg Date: Thu, 6 Jun 2013 20:20:39 +0000 (+0200) Subject: lib1500: remove bad check X-Git-Tag: curl-7_31_0~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=87cf677eca55;p=thirdparty%2Fcurl.git lib1500: remove bad check After curl_multi_wait() returns, this test checked that we got exactly one file descriptor told to read from, but we cannot be sure that is true. curl_multi_wait() will sometimes return earlier without any file descriptor to handle, just just because it is a suitable time to call *perform(). This problem showed up with commit 29bf0598. Bug: http://curl.haxx.se/mail/lib-2013-06/0029.html Reported-by: Fabian Keil --- diff --git a/tests/libtest/lib1500.c b/tests/libtest/lib1500.c index 784bdb2a24..76e3d320c6 100644 --- a/tests/libtest/lib1500.c +++ b/tests/libtest/lib1500.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2011, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2013, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -61,11 +61,6 @@ int test(char *URL) res = -1; goto test_cleanup; } - if (num != 1) { - printf("curl_multi_wait() returned on %d handle(s), expected 1\n", num); - res = -1; - goto test_cleanup; - } abort_on_test_timeout();