From 0bba0e611eab89603ea666059239b32d422318d1 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 30 Apr 2019 05:41:25 +0200 Subject: [PATCH] Restrict SymEngine test --- tests/symengine/substitution_maps_scalar_01.cc | 4 +++- tests/symengine/substitution_maps_scalar_02.cc | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/symengine/substitution_maps_scalar_01.cc b/tests/symengine/substitution_maps_scalar_01.cc index b298fcafaf..3ded4a60cb 100644 --- a/tests/symengine/substitution_maps_scalar_01.cc +++ b/tests/symengine/substitution_maps_scalar_01.cc @@ -69,6 +69,7 @@ main() SD::Utilities::print_substitution_map(deallog, substitution_map); +#ifdef DEBUG // Check that exceptions are raised when duplicate symbols // are found in a substitution map deal_II_exceptions::disable_abort_on_exception(); @@ -79,8 +80,9 @@ main() deallog << "Duplicate symbol in map did not raise an error." << std::endl; } - catch (...) + catch (const ExcMessage &) {} +#endif deallog << "OK" << std::endl; } diff --git a/tests/symengine/substitution_maps_scalar_02.cc b/tests/symengine/substitution_maps_scalar_02.cc index 79d79d46cd..11679abc91 100644 --- a/tests/symengine/substitution_maps_scalar_02.cc +++ b/tests/symengine/substitution_maps_scalar_02.cc @@ -127,6 +127,7 @@ main() SD::merge_substitution_maps(substitution_map, substitution_map_1); } +#ifdef DEBUG // Check that exceptions are raised when duplicate symbols // associated with unequal values are found in a substitution map deal_II_exceptions::disable_abort_on_exception(); @@ -150,8 +151,9 @@ main() << "Duplicate symbol with non-equal value in map did not raise an error." << std::endl; } - catch (...) + catch (const ExcMessage &) {} +#endif deallog << "OK" << std::endl; } -- 2.39.5