Commit 303c3e0cb3 for openssl.org
commit 303c3e0cb3dc3d5ae503f441f4b53dfa0c060690
Author: Milan Broz <gmazyland@gmail.com>
Date: Tue Mar 17 14:16:37 2026 +0100
test: Do not fail if packet cannot be extended in QUIC multistream test
In some specific timings, the qtest_fault_resize_plain_packet function
returns failure as there is not enough space in allocated buffer.
There is no way to recover in this situation, let print
information and keep the test finish instead of failure
in TEST_error() call.
This patch fixes test runs on Windows where I can reproduce
this quite reliably.
Signed-off-by: Milan Broz <gmazyland@gmail.com>
Reviewed-by: Saša NedvÄ›dický <sashan@openssl.org>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
MergeDate: Thu Mar 19 09:17:59 2026
(Merged from https://github.com/openssl/openssl/pull/30461)
diff --git a/test/helpers/quictestlib.c b/test/helpers/quictestlib.c
index a0df212074..5405df6ebf 100644
--- a/test/helpers/quictestlib.c
+++ b/test/helpers/quictestlib.c
@@ -930,9 +930,10 @@ int qtest_fault_prepend_frame(QTEST_FAULT *fault, const unsigned char *frame,
old_len = fault->pplainio.buf_len;
/* Extend the size of the packet by the size of the new frame */
- if (!TEST_true(qtest_fault_resize_plain_packet(fault,
- old_len + frame_len)))
+ if (!qtest_fault_resize_plain_packet(fault, old_len + frame_len)) {
+ TEST_info("Cannot extend packet (%zu + %zu)", old_len, frame_len);
return 0;
+ }
memmove(buf + frame_len, buf, old_len);
memcpy(buf, frame, frame_len);