Added an explicit yield (OP_SLEEP) to QUIC testing for cooperative threading. master
authorRandall S. Becker <randall.becker@nexbridge.ca>
Mon, 20 May 2024 22:23:04 +0000 (22:23 +0000)
committerTomas Mraz <tomas@openssl.org>
Wed, 22 May 2024 15:29:03 +0000 (17:29 +0200)
Fixes: #24442
Signed-off-by: Randall S. Becker <randall.becker@nexbridge.ca>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/24443)

test/quic_multistream_test.c

index 2d1087266e65ca468ca1715bd8e4d9e328610abd..fb2daac879d46faab3f042d61618adb8228fde48 100644 (file)
@@ -2376,6 +2376,7 @@ static const struct script_op script_10[] = {
 static const struct script_op script_11_child[] = {
     OP_C_ACCEPT_STREAM_WAIT (a)
     OP_C_READ_EXPECT        (a, "foo", 3)
+    OP_SLEEP                (10)
     OP_C_EXPECT_FIN         (a)
 
     OP_END