]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC MULTISTREAM TEST: Make test resilient on stochastic platforms
authorHugo Landau <hlandau@openssl.org>
Mon, 22 Jan 2024 14:29:26 +0000 (14:29 +0000)
committerHugo Landau <hlandau@openssl.org>
Thu, 8 Feb 2024 16:50:00 +0000 (16:50 +0000)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23360)

test/quic_multistream_test.c

index b7fa98dbd60d7534276a980708058105b9b4c5be..42ae1ede428c25658221d8300d39756b70cf04cf 100644 (file)
@@ -5399,16 +5399,22 @@ static const struct script_op script_82[] = {
     OP_CHECK2               (check_avail_streams, 2, 99)
     OP_CHECK2               (check_avail_streams, 3, 100)
 
-    OP_S_NEW_STREAM_BIDI    (a, S_BIDI_ID(0))
-    OP_S_WRITE              (a, "x", 1)
+    OP_S_NEW_STREAM_BIDI    (c, S_BIDI_ID(0))
+    OP_S_WRITE              (c, "x", 1)
+
+    OP_C_ACCEPT_STREAM_WAIT (c)
+    OP_C_READ_EXPECT        (c, "x", 1)
 
     OP_CHECK2               (check_avail_streams, 0, 99)
     OP_CHECK2               (check_avail_streams, 1, 99)
     OP_CHECK2               (check_avail_streams, 2, 99)
     OP_CHECK2               (check_avail_streams, 3, 100)
 
-    OP_S_NEW_STREAM_UNI     (b, S_UNI_ID(0))
-    OP_S_WRITE              (b, "x", 1)
+    OP_S_NEW_STREAM_UNI     (d, S_UNI_ID(0))
+    OP_S_WRITE              (d, "x", 1)
+
+    OP_C_ACCEPT_STREAM_WAIT (d)
+    OP_C_READ_EXPECT        (d, "x", 1)
 
     OP_CHECK2               (check_avail_streams, 0, 99)
     OP_CHECK2               (check_avail_streams, 1, 99)