From: Stefan Eissing Date: Mon, 15 Jul 2024 09:56:51 +0000 (+0200) Subject: test2600: disable on win32 X-Git-Tag: curl-8_9_0~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6f0a8bd43c76a43ef0a4542bfb28e0489a9fd40d;p=thirdparty%2Fcurl.git test2600: disable on win32 - disbable this test on WIN32 platforms. It uses the file describtor '1' as valid socket without events. Not portable. - reduce trace output somewhat on other runs Fixes #14177 Reported-by: Viktor Szakats Closes #14191 --- diff --git a/tests/data/test2600 b/tests/data/test2600 index 5b88aedb7d..10109d1e19 100644 --- a/tests/data/test2600 +++ b/tests/data/test2600 @@ -17,6 +17,7 @@ none unittest debug http +!win32 connection filter connect/destroy unit tests diff --git a/tests/unit/unit2600.c b/tests/unit/unit2600.c index 5c08d07d47..5a3def4076 100644 --- a/tests/unit/unit2600.c +++ b/tests/unit/unit2600.c @@ -47,6 +47,7 @@ #include "connect.h" #include "cfilters.h" #include "multiif.h" +#include "select.h" #include "curl_trc.h" @@ -62,6 +63,7 @@ static CURLcode unit_setup(void) curl_global_cleanup(); return CURLE_OUT_OF_MEMORY; } + curl_global_trace("all"); curl_easy_setopt(easy, CURLOPT_VERBOSE, 1L); return res; } @@ -146,8 +148,10 @@ static CURLcode cf_test_connect(struct Curl_cfilter *cf, (int)duration_ms, ctx->id); return CURLE_COULDNT_CONNECT; } - if(duration_ms) + if(duration_ms) { infof(data, "%04dms: cf[%s] continuing", (int)duration_ms, ctx->id); + Curl_wait_ms(10); + } Curl_expire(data, ctx->fail_delay_ms - duration_ms, EXPIRE_RUN_NOW); return CURLE_OK; }