From: Daniel Arndt Date: Tue, 30 Apr 2019 03:41:25 +0000 (+0200) Subject: Restrict SymEngine test X-Git-Tag: v9.1.0-rc1~160^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bba0e611eab89603ea666059239b32d422318d1;p=dealii.git Restrict SymEngine test --- 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; }