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
This commit is contained in:
Stefan Eissing 2024-07-15 11:56:51 +02:00 committed by Daniel Stenberg
parent f4b8b976b4
commit 6f0a8bd43c
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 6 additions and 1 deletions

View file

@ -17,6 +17,7 @@ none
unittest
debug
http
!win32
</features>
<name>
connection filter connect/destroy unit tests

View file

@ -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;
}