aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/tests.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-01-22 14:49:13 -0500
committerJack Lloyd <[email protected]>2017-01-22 14:49:13 -0500
commit7e9b18ecfe173a13f574c9e882b1cf5510f62afb (patch)
treef51c78afe1e3ffc031dfb38ea1b5432273d5383a /src/tests/tests.cpp
parent8583c92f502c616dbf8358b350b0d3f0f8f8d1b8 (diff)
Avoid blocking tests from running if no RNG enabled
Instead just let the individual tests that need the RNG fail.
Diffstat (limited to 'src/tests/tests.cpp')
-rw-r--r--src/tests/tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/tests.cpp b/src/tests/tests.cpp
index e18603b2d..855e19f80 100644
--- a/src/tests/tests.cpp
+++ b/src/tests/tests.cpp
@@ -545,7 +545,7 @@ std::string Test::pkcs11_lib()
Botan::RandomNumberGenerator& Test::rng()
{
if(!m_test_rng)
- throw Test_Error("Test RNG not initialized");
+ throw Test_Error("No usable RNG in build, and this test requires an RNG");
return *m_test_rng;
}