aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-29 15:05:05 +0200
committerSimon Warta <[email protected]>2015-06-29 15:05:05 +0200
commit48172a4b0d2a38f612d89f137d43668959188bf7 (patch)
treec363f62cc32997212e7d3334c7bd202bcfde981d
parent6317d6fb6d8bc79f1c9f0453d4122ed80603a9f8 (diff)
parentf4f35f07545037b792ed4c580157e8cbf8ded15f (diff)
Merge pull request #155 from webmaster128/tls-fail-on-exception
Let TLS unittests fail on exception
-rw-r--r--src/tests/unit_tls.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/unit_tls.cpp b/src/tests/unit_tls.cpp
index 11ec049d5..edc5e913d 100644
--- a/src/tests/unit_tls.cpp
+++ b/src/tests/unit_tls.cpp
@@ -237,7 +237,7 @@ size_t basic_test_handshake(RandomNumberGenerator& rng,
catch(std::exception& e)
{
std::cout << "Server error - " << e.what() << std::endl;
- break;
+ return 1;
}
input.clear();
@@ -250,7 +250,7 @@ size_t basic_test_handshake(RandomNumberGenerator& rng,
catch(std::exception& e)
{
std::cout << "Client error - " << e.what() << std::endl;
- break;
+ return 1;
}
if(c2s_data.size())