From: Tomas Mraz Date: Mon, 23 Oct 2023 14:05:27 +0000 (+0200) Subject: quic_multistream_test: Output info about connection close reason X-Git-Tag: openssl-3.2.0-beta1~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c110311fd5e7f04e2c152b17d44acfd4a279ea6;p=thirdparty%2Fopenssl.git quic_multistream_test: Output info about connection close reason In case the connection close error code is unexpected print out the reason to help with diagnostics. Reviewed-by: Hugo Landau Reviewed-by: Richard Levitte Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/22474) --- diff --git a/test/quic_multistream_test.c b/test/quic_multistream_test.c index 36be2dc80c0..09792c2f716 100644 --- a/test/quic_multistream_test.c +++ b/test/quic_multistream_test.c @@ -1640,8 +1640,10 @@ static int run_script_worker(struct helper *h, const struct script_op *script, || !TEST_int_eq(expect_remote, (cc_info.flags & SSL_CONN_CLOSE_FLAG_LOCAL) == 0) - || !TEST_uint64_t_eq(error_code, cc_info.error_code)) + || !TEST_uint64_t_eq(error_code, cc_info.error_code)) { + TEST_info("Connection close reason: %s", cc_info.reason); goto out; + } } break;