diff options
Diffstat (limited to 'src/tests/unit_tls.cpp')
-rw-r--r-- | src/tests/unit_tls.cpp | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/tests/unit_tls.cpp b/src/tests/unit_tls.cpp index 6c15ec4e9..8502352fc 100644 --- a/src/tests/unit_tls.cpp +++ b/src/tests/unit_tls.cpp @@ -173,6 +173,8 @@ Test::Result test_tls_handshake(Botan::TLS::Protocol_Version offer_version, { bool handshake_done = false; + result.test_note("Test round " + std::to_string(r)); + auto handshake_complete = [&](const Botan::TLS::Session& session) -> bool { handshake_done = true; @@ -279,7 +281,14 @@ Test::Result test_tls_handshake(Botan::TLS::Protocol_Version offer_version, } catch(std::exception& e) { - result.test_failure("server error", e.what()); + if(corrupt_server_data) + { + result.test_note("corruption caused server exception"); + } + else + { + result.test_failure("server error", e.what()); + } continue; } @@ -294,7 +303,14 @@ Test::Result test_tls_handshake(Botan::TLS::Protocol_Version offer_version, } catch(std::exception& e) { - result.test_failure("client error", e.what()); + if(corrupt_client_data) + { + result.test_note("corruption caused client exception"); + } + else + { + result.test_failure("client error", e.what()); + } continue; } |