aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-12-10 19:27:55 -0500
committerJack Lloyd <[email protected]>2016-12-10 19:27:55 -0500
commit949d319304fbc2861dcd4b1ff0207cf0294338b7 (patch)
tree2554e266ad44a026f9f43fec1d454261c9a5d137 /src
parentcd3e4151ff911b85449b3b50c90866da66b219a2 (diff)
Fix PK EME decoding tests when algo is missing
Diffstat (limited to 'src')
-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;