summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2023-10-23 16:05:27 +0200
committerMatt Caswell <matt@openssl.org>2023-10-25 09:39:41 +0100
commit8c110311fd5e7f04e2c152b17d44acfd4a279ea6 (patch)
treeaaf4798d732063067555469a72e860e086e71831 /test
parent74efc5477c8a78ca80187a1332e5b89ce5ed6c16 (diff)
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)
Diffstat (limited to 'test')
-rw-r--r--test/quic_multistream_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/quic_multistream_test.c b/test/quic_multistream_test.c
index 36be2dc80c..09792c2f71 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;