From: Matthias Maier Date: Fri, 23 Jun 2023 22:26:52 +0000 (-0500) Subject: Test cgal/cgal_triangulation_06: disable floating point exceptions X-Git-Tag: v9.5.0-rc1~34^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15462%2Fhead;p=dealii.git Test cgal/cgal_triangulation_06: disable floating point exceptions Otherwise this test might trigger a spurious floating point exception depending on the CGAL library version being used. --- diff --git a/tests/cgal/cgal_triangulation_06.cc b/tests/cgal/cgal_triangulation_06.cc index 9be5c04034..517d3902dd 100644 --- a/tests/cgal/cgal_triangulation_06.cc +++ b/tests/cgal/cgal_triangulation_06.cc @@ -45,6 +45,16 @@ using C3t3 = CGAL::Mesh_complex_3_in_triangulation_3; int main() { + // 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 + initlog(); // Build a deal.II triangulation CGAL::Surface_mesh cgal_surface_mesh;