From: Matthias Maier Date: Sat, 24 Jun 2023 23:03:00 +0000 (-0500) Subject: Test cgal/cgal_remesh_surface: disable floating point exceptions X-Git-Tag: v9.5.0-rc1~32^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15466%2Fhead;p=dealii.git Test cgal/cgal_remesh_surface: disable floating point exceptions --- 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;