]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Port script_26
authorAndrew Dinh <andrewd@openssl.org>
Sat, 18 Jul 2026 12:16:53 +0000 (19:16 +0700)
committerAndrew Dinh <andrewd@openssl.org>
Sat, 1 Aug 2026 12:44:18 +0000 (19:44 +0700)
Assisted-by: Claude:claude-sonnet-5
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
MergeDate: Sat Aug  1 12:44:41 2026
(Merged from https://github.com/openssl/openssl/pull/32023)

test/quic_multistream_test.c
test/radix/quic_tests.c

index 77890576c6f913810343d8214ec543948587bd20..6f6b6aeeb8f668d8e8f04894600bf53d442090b0 100644 (file)
@@ -2260,20 +2260,7 @@ static const struct script_op script_25[] = {
 
 /* 26. Fault injection - excess value of STREAMS_BLOCKED_BIDI */
 static const struct script_op script_26[] = {
-    OP_S_SET_INJECT_PLAIN(script_24_inject_plain),
-    OP_C_SET_ALPN("ossltest"),
-    OP_C_CONNECT_WAIT(),
-
-    OP_C_WRITE(DEFAULT, "apple", 5),
-    OP_S_BIND_STREAM_ID(a, C_BIDI_ID(0)),
-    OP_S_READ_EXPECT(a, "apple", 5),
-
-    OP_SET_INJECT_WORD(1, OSSL_QUIC_FRAME_TYPE_STREAMS_BLOCKED_BIDI),
-
-    OP_S_WRITE(a, "orange", 6),
-
-    OP_C_EXPECT_CONN_CLOSE_INFO(OSSL_QUIC_ERR_STREAM_LIMIT_ERROR, 0, 0),
-
+    /* test moved to test/radix/quic_tests.c */
     OP_END
 };
 
index 95f83714d12ed0bb86279029acf50f98437b0842..65559930646bb6d72353950ddcf939b8ef32bb7e 100644 (file)
@@ -1991,8 +1991,23 @@ DEF_SCRIPT(script_25, "Fault injection - excess value of MAX_STREAMS_UNI")
     OP_EXPECT_CONN_CLOSE_INFO(C, OSSL_QUIC_ERR_FRAME_ENCODING_ERROR, 0, 0);
 }
 
-DEF_SCRIPT(script_26, "place holder for multistrem script_26")
+/* 26. Fault injection - excess value of STREAMS_BLOCKED_BIDI */
+DEF_SCRIPT(script_26, "Fault injection - excess value of STREAMS_BLOCKED_BIDI")
 {
+    OP_SIMPLE_PAIR_CONN();
+    OP_ACCEPT_CONN_WAIT(L, S, 0);
+
+    OP_SET_INJECT_PLAIN(S, script_24_inject_plain);
+
+    OP_WRITE(C, "apple", 5);
+    OP_ACCEPT_STREAM_WAIT(S, Sa, 0);
+    OP_READ_EXPECT(Sa, "apple", 5);
+
+    OP_SET_INJECT_WORD(1, OSSL_QUIC_FRAME_TYPE_STREAMS_BLOCKED_BIDI);
+
+    OP_WRITE(Sa, "orange", 6);
+
+    OP_EXPECT_CONN_CLOSE_INFO(C, OSSL_QUIC_ERR_STREAM_LIMIT_ERROR, 0, 0);
 }
 
 DEF_SCRIPT(script_27, "place holder for multistrem script_27")