From 07f70fafc38ef0956d4cd9176d6f8c578aedd07e Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sat, 31 Mar 2018 10:10:38 -0400 Subject: Add --avoid-undefined option GH #1518 --- src/tests/test_dl_group.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/tests/test_dl_group.cpp') diff --git a/src/tests/test_dl_group.cpp b/src/tests/test_dl_group.cpp index 2644d5e1a..10a7e3bc6 100644 --- a/src/tests/test_dl_group.cpp +++ b/src/tests/test_dl_group.cpp @@ -44,12 +44,15 @@ class DL_Group_Tests final : public Test "DL_Group uninitialized", []() { Botan::DL_Group dl; dl.get_p(); }); - result.test_throws("Bad generator param", - "Invalid argument DL_Group unknown PrimeType", - []() { - auto invalid_type = static_cast(9); - Botan::DL_Group dl(Test::rng(), invalid_type, 1024); - }); + if(Test::avoid_undefined_behavior() == false) + { + result.test_throws("Bad generator param", + "Invalid argument DL_Group unknown PrimeType", + []() { + auto invalid_type = static_cast(9); + Botan::DL_Group dl(Test::rng(), invalid_type, 1024); + }); + } return result; } -- cgit v1.2.3