]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix test/quic_tserver_test.c for slow machines
authorRichard Levitte <levitte@openssl.org>
Tue, 12 Sep 2023 13:07:29 +0000 (15:07 +0200)
committerTomas Mraz <tomas@openssl.org>
Wed, 13 Sep 2023 20:07:58 +0000 (22:07 +0200)
OSSL_sleep(1) isn't enough of a wait for threads to process the next QUIC
tick, so it gets increased to OSSL_sleep(100).  This may be a tad much,
perhaps, but for now, it gives a good margin.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22075)

test/quic_tserver_test.c

index 3d1249863b2ae1b43e339cecdefc3c65d16ebc37..980c9a83ff0acee7ace72709fb5a1768c6dbacb4 100644 (file)
@@ -312,7 +312,7 @@ static int do_test(int use_thread_assist, int use_fake_time, int use_inject)
 
                 ++idle_units_done;
                 ossl_quic_conn_force_assist_thread_wake(c_ssl);
-                OSSL_sleep(1); /* Ensure CPU scheduling for test purposes */
+                OSSL_sleep(100); /* Ensure CPU scheduling for test purposes */
             } else {
                 c_done_idle_test = 1;
             }