aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tests/test_pk_pad.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tests/test_pk_pad.cpp b/src/tests/test_pk_pad.cpp
index 79448e63f..85bd53846 100644
--- a/src/tests/test_pk_pad.cpp
+++ b/src/tests/test_pk_pad.cpp
@@ -27,9 +27,13 @@ class EME_Decoding_Tests : public Text_Based_Test
{
Test::Result result(algo + " Decoding");
- std::unique_ptr<Botan::EME> eme(Botan::get_eme(algo));
+ std::unique_ptr<Botan::EME> eme;
- if(eme == nullptr)
+ try
+ {
+ eme.reset(Botan::get_eme(algo));
+ }
+ catch(Botan::Lookup_Error&)
{
result.note_missing(algo);
return result;