]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC RADIX: Add test of multithreading functionality
authorHugo Landau <hlandau@openssl.org>
Mon, 5 Feb 2024 18:19:38 +0000 (18:19 +0000)
committerViktor Dukhovni <openssl-users@dukhovni.org>
Wed, 11 Sep 2024 08:35:22 +0000 (18:35 +1000)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23487)

test/radix/quic_tests.c

index 3398c9d4d5e22e318764f186b25437d98578f68b..4f4c9118afb383edc0a35a4d382f57ed91fb8e2e 100644 (file)
@@ -24,10 +24,25 @@ DEF_SCRIPT(simple_conn, "simple connection to server")
     OP_READ_EXPECT_B(C, "orange");
 }
 
+DEF_SCRIPT(simple_thread_child,
+           "test that RADIX multithreading is working (child)")
+{
+}
+
+DEF_SCRIPT(simple_thread,
+           "test that RADIX multithreading is working")
+{
+    size_t i;
+
+    for (i = 0; i < 2; ++i)
+        OP_SPAWN_THREAD(simple_thread_child);
+}
+
 /*
  * List of Test Scripts
  * ============================================================================
  */
 static SCRIPT_INFO *const scripts[] = {
     USE(simple_conn)
+    USE(simple_thread)
 };