aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/unit_tls.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/unit_tls.cpp b/src/tests/unit_tls.cpp
index a154d2e18..0aa33d213 100644
--- a/src/tests/unit_tls.cpp
+++ b/src/tests/unit_tls.cpp
@@ -756,8 +756,10 @@ Test::Result test_dtls_handshake(Botan::TLS::Protocol_Version offer_version,
while(true)
{
+#if defined(BOTAN_TARGET_OS_HAS_THREADS)
// TODO: client and server should be in different threads
std::this_thread::sleep_for(std::chrono::microseconds(rng.next_byte() % 128));
+#endif
++rounds;
if(rounds > 100)