diff options
author | Jack Lloyd <[email protected]> | 2017-01-22 14:49:13 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-01-22 14:49:13 -0500 |
commit | 7e9b18ecfe173a13f574c9e882b1cf5510f62afb (patch) | |
tree | f51c78afe1e3ffc031dfb38ea1b5432273d5383a /src | |
parent | 8583c92f502c616dbf8358b350b0d3f0f8f8d1b8 (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')
-rw-r--r-- | src/tests/main.cpp | 5 | ||||
-rw-r--r-- | src/tests/tests.cpp | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/tests/main.cpp b/src/tests/main.cpp index 2ba5751aa..f2c8f7eb0 100644 --- a/src/tests/main.cpp +++ b/src/tests/main.cpp @@ -173,11 +173,6 @@ class Test_Runner : public Botan_CLI::Command #endif output() << "\n"; - if(rng.get() == nullptr) - { - throw Botan_Tests::Test_Error("No usable RNG enabled in build, aborting tests"); - } - Botan_Tests::Test::setup_tests(log_success, run_online_tests, run_long_tests, data_dir, pkcs11_lib, rng.get()); 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; } |