Skip to content

Commit

Permalink
fixup! Add support into qtest_shutdown for blocking mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcaswell committed Aug 1, 2023
1 parent e43c3c9 commit 11c839b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/helpers/quictestlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,16 +401,13 @@ int qtest_shutdown(QUIC_TSERVER *qtserv, SSL *clientssl)
ossl_quic_tserver_tick(qtserv);
}

#if defined(OPENSSL_THREADS) && !defined(CRYPTO_TDEBUG)
tsan_store(&shutdowndone, 1);
if (!tickserver) {
#if defined(OPENSSL_THREADS) && !defined(CRYPTO_TDEBUG)
if (!TEST_true(wait_for_thread(t)))
ret = 0;
#else
TEST_error("Should not happen");
ret = 0;
#endif
}
#endif

return ret;
}
Expand Down

0 comments on commit 11c839b

Please sign in to comment.