]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Restrict SymEngine test 7981/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 30 Apr 2019 03:41:25 +0000 (05:41 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 30 Apr 2019 03:41:25 +0000 (05:41 +0200)
tests/symengine/substitution_maps_scalar_01.cc
tests/symengine/substitution_maps_scalar_02.cc

index b298fcafaf7670030933d2d0f7b4ccf8635cbc37..3ded4a60cb53604122cafe2733c4032a9a944ab1 100644 (file)
@@ -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;
 }
index 79d79d46cd9d2a5b7fb5af47181292c7a062aa5b..11679abc918ecc04fbbe6e70e8df2d6607d40c79 100644 (file)
@@ -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;
 }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.