diff options
author | Azat Khuzhin <azat@libevent.org> | 2021-09-19 10:54:27 +0300 |
---|---|---|
committer | Azat Khuzhin <azat@libevent.org> | 2021-09-19 10:56:52 +0300 |
commit | 95eadf0426315149cc7e97c6b67bbc70b399f9cc (patch) | |
tree | e2aa61e9be8c9477df7004150744083487005957 /test/regress_http.c | |
parent | a35d2d01ff55555c4a954809349d2a0312f5bcb9 (diff) | |
download | libevent-95eadf0426315149cc7e97c6b67bbc70b399f9cc.tar.gz |
test/regress_http: disable max_connections/data_length_constraints under windows
CI: https://github.com/libevent/libevent/runs/3643554394
Diffstat (limited to 'test/regress_http.c')
-rw-r--r-- | test/regress_http.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/regress_http.c b/test/regress_http.c index 8c019010..752b5fc6 100644 --- a/test/regress_http.c +++ b/test/regress_http.c @@ -68,6 +68,12 @@ #define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0])) +#if EV_WINDOWS +#define SKIP_UNDER_WINDOWS TT_SKIP +#else +#define SKIP_UNDER_WINDOWS 0 +#endif + /* set if a test needs to call loopexit on a base */ static struct event_base *exit_base; @@ -5696,6 +5702,7 @@ end: #define HTTP_N(title, name, test_opts, arg) \ { #title, http_##name##_test, TT_ISOLATED|test_opts, &basic_setup, HTTP_CAST_ARG(arg) } #define HTTP(name) HTTP_N(name, name, 0, NULL) +#define HTTP_OPT(name, opt) HTTP_N(name, name, opt, NULL) #define HTTPS(name) \ { "https_openssl_" #name, https_##name##_test, TT_ISOLATED, &basic_setup, NULL } #define HTTPS_MBEDTLS(name) \ @@ -5843,7 +5850,7 @@ struct testcase_t http_testcases[] = { { "connection_retry_conn_address", http_connection_retry_conn_address_test, TT_ISOLATED|TT_OFF_BY_DEFAULT, &basic_setup, NULL }, - HTTP(data_length_constraints), + HTTP_OPT(data_length_constraints, SKIP_UNDER_WINDOWS), HTTP(read_on_write_error), HTTP(non_lingering_close), HTTP(lingering_close), @@ -5862,7 +5869,7 @@ struct testcase_t http_testcases[] = { HTTP(request_extra_body), HTTP(newreqcb), - HTTP(max_connections), + HTTP_OPT(max_connections, SKIP_UNDER_WINDOWS), HTTP(timeout_read_client), HTTP(timeout_read_server), |