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 <hlandau@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22474)
This commit is contained in:
Tomas Mraz 2023-10-23 16:05:27 +02:00 committed by Matt Caswell
parent 74efc5477c
commit 8c110311fd

View File

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