From: Hugo Landau Date: Mon, 13 May 2024 19:20:23 +0000 (+0100) Subject: QUIC MULTISTREAM TEST: Remove test that blocking SSL_poll doesn't work X-Git-Tag: openssl-3.5.0-alpha1~344 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0601469dd6eee0b2873d071a515d4fbe2b1ef951;p=thirdparty%2Fopenssl.git QUIC MULTISTREAM TEST: Remove test that blocking SSL_poll doesn't work Reviewed-by: Matt Caswell Reviewed-by: Saša Nedvědický Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/25416) --- diff --git a/test/quic_multistream_test.c b/test/quic_multistream_test.c index 9b90d36d9f7..a145e46fd24 100644 --- a/test/quic_multistream_test.c +++ b/test/quic_multistream_test.c @@ -5492,7 +5492,6 @@ ossl_unused static int script_85_poll(struct helper *h, struct helper_local *hl) { int ok = 1, ret, expected_ret = 1; static const struct timeval timeout = {0}; - static const struct timeval nz_timeout = {0, 1}; size_t result_count, expected_result_count = 0; SSL_POLL_ITEM items[5] = {0}, *item = items; SSL *c_a, *c_b, *c_c, *c_d; @@ -5530,16 +5529,6 @@ ossl_unused static int script_85_poll(struct helper *h, struct helper_local *hl) item->revents = UINT64_MAX; ++item; - /* Non-zero timeout is not supported. */ - result_count = SIZE_MAX; - ERR_set_mark(); - if (!TEST_false(SSL_poll(items, OSSL_NELEM(items), sizeof(SSL_POLL_ITEM), - &nz_timeout, 0, - &result_count)) - || !TEST_size_t_eq(result_count, 0)) - return 0; - - ERR_pop_to_mark(); result_count = SIZE_MAX; ret = SSL_poll(items, OSSL_NELEM(items), sizeof(SSL_POLL_ITEM), &timeout, 0,