]> granicus.if.org Git - libevent/commitdiff
test/regress_http: disable max_connections/data_length_constraints under windows
authorAzat Khuzhin <azat@libevent.org>
Sun, 19 Sep 2021 07:54:27 +0000 (10:54 +0300)
committerAzat Khuzhin <azat@libevent.org>
Sun, 19 Sep 2021 07:56:52 +0000 (10:56 +0300)
CI: https://github.com/libevent/libevent/runs/3643554394

test/regress_http.c

index 8c019010108edfeb3905c8cfce4059db826c7312..752b5fc623848549289bc48beabe88b27cfbe4aa 100644 (file)
 
 #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),