diff options
author | Jack Lloyd <[email protected]> | 2018-01-19 09:46:25 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-01-19 09:46:40 -0500 |
commit | 023a245c7524e3aeacf3d818c43d436290a8e588 (patch) | |
tree | 01b52d7b46a7df58c579360ff4c49596f73023e4 /src/tests/unit_tls.cpp | |
parent | 64c27be0b95e01c055038b09889fff7f36d7f8ac (diff) |
Build fix when threads are disabled [ci skip]
GH #1423
Diffstat (limited to 'src/tests/unit_tls.cpp')
-rw-r--r-- | src/tests/unit_tls.cpp | 2 |
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) |