From 3f9e7e2b55a03ae23b6348328cea5b31cbc1639f Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sat, 24 Jun 2023 18:03:00 -0500 Subject: [PATCH] Test cgal/cgal_remesh_surface: disable floating point exceptions --- tests/cgal/cgal_remesh_surface.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/cgal/cgal_remesh_surface.cc b/tests/cgal/cgal_remesh_surface.cc index 6a1a8426dc..f8fd8b5436 100644 --- a/tests/cgal/cgal_remesh_surface.cc +++ b/tests/cgal/cgal_remesh_surface.cc @@ -40,6 +40,16 @@ template void test() { + // This test might trigger spurious floating point exception despite + // functioning properly. Simply disable floating point exceptions again + // (after they had been enabled int tests.h) +#if defined(DEBUG) && defined(DEAL_II_HAVE_FP_EXCEPTIONS) + { + const int current_fe_except = fegetexcept(); + fedisableexcept(current_fe_except); + } +#endif + deallog << "dim= " << dim << ",\t spacedim= " << spacedim << std::endl; Triangulation tria0, tria1; -- 2.39.5