From 85563260e72f231eb6badfa6e0d3415bc9c902d2 Mon Sep 17 00:00:00 2001 From: Thomas Helfer Date: Sun, 6 Sep 2026 13:00:26 +0200 Subject: [PATCH 1/2] Fix Issue #255 --- tests/InvokeTest.cxx | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/tests/InvokeTest.cxx b/tests/InvokeTest.cxx index 52049ba57..f3b92a20b 100644 --- a/tests/InvokeTest.cxx +++ b/tests/InvokeTest.cxx @@ -66,20 +66,22 @@ struct InvokeTest final : public tfel::tests::TestCase { void test3() { using namespace mgis; Context ctx; - const auto r1 = - invokeCheckErrno(ctx, static_cast(std::log), 1); - TFEL_TESTS_ASSERT(r1.has_value()); - TFEL_TESTS_ASSERT(std::abs(*r1) < 1e-14); - const auto r2 = - invokeCheckErrno(ctx, static_cast(std::log), -1); - TFEL_TESTS_ASSERT(!r2.has_value()); - const auto r3 = MGIS_INVOKE_CHECK_ERRNO( - ctx, static_cast(std::log), 1); - TFEL_TESTS_ASSERT(r3.has_value()); - TFEL_TESTS_ASSERT(std::abs(*r3) < 1e-14); - const auto r4 = MGIS_INVOKE_CHECK_ERRNO( - ctx, static_cast(std::log), -1); - TFEL_TESTS_ASSERT(!r4.has_value()); + if (math_errhandling & MATH_ERRNO) { + const auto r1 = + invokeCheckErrno(ctx, static_cast(std::log), 1); + TFEL_TESTS_ASSERT(r1.has_value()); + TFEL_TESTS_ASSERT(std::abs(*r1) < 1e-14); + const auto r2 = + invokeCheckErrno(ctx, static_cast(std::log), -1); + TFEL_TESTS_ASSERT(!r2.has_value()); + const auto r3 = MGIS_INVOKE_CHECK_ERRNO( + ctx, static_cast(std::log), 1); + TFEL_TESTS_ASSERT(r3.has_value()); + TFEL_TESTS_ASSERT(std::abs(*r3) < 1e-14); + const auto r4 = MGIS_INVOKE_CHECK_ERRNO( + ctx, static_cast(std::log), -1); + TFEL_TESTS_ASSERT(!r4.has_value()); + } } // end of test3 }; // end of InvokeTest From fdfff71d0dbb7868de120fce834a2dd3f54ee339 Mon Sep 17 00:00:00 2001 From: Thomas Helfer Date: Sun, 6 Sep 2026 13:01:21 +0200 Subject: [PATCH 2/2] update release notes --- docs/web/release-notes-3.2.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/web/release-notes-3.2.md b/docs/web/release-notes-3.2.md index a2e24bf8f..3839baffb 100644 --- a/docs/web/release-notes-3.2.md +++ b/docs/web/release-notes-3.2.md @@ -264,6 +264,10 @@ assign(ctx, f | as_scalar, f2 | as_scalar); # Issues fixed +## Issue 255: Fix `InvokeTest` on `MacOS` + +For more details, see + ## Issue 250: Add `ErrorBacktrace::assertOrTerminate` For more details, see