From: Bruno Haible Date: Fri, 10 Apr 2026 23:16:35 +0000 (+0200) Subject: fenv-exceptions-trapping tests: Make test more debugging friendly. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;p=thirdparty%2Fgnulib.git fenv-exceptions-trapping tests: Make test more debugging friendly. Suggested by Pali Rohár . * tests/test-fenv-except-trapping-1.c (main): Add an assertion. --- diff --git a/ChangeLog b/ChangeLog index 4b627f3ea2..29ab05d4a3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2026-04-10 Bruno Haible + + fenv-exceptions-trapping tests: Make test more debugging friendly. + Suggested by Pali Rohár . + * tests/test-fenv-except-trapping-1.c (main): Add an assertion. + 2026-04-10 Bruno Haible sigprocmask: Allow single-thread optimization again. diff --git a/tests/test-fenv-except-trapping-1.c b/tests/test-fenv-except-trapping-1.c index 341411bbdd..c9250248f9 100644 --- a/tests/test-fenv-except-trapping-1.c +++ b/tests/test-fenv-except-trapping-1.c @@ -60,6 +60,10 @@ main () fputs ("Skipping test: trapping floating-point exceptions are not supported on this machine.\n", stderr); return 77; } + /* Check fegetexcept. */ + ASSERT (fegetexcept () == uint_to_exceptions (a)); + /* Check the return value of fedisableexcept. It should be consistent + with fegetexcept. */ ASSERT (fedisableexcept (uint_to_exceptions (b)) == uint_to_exceptions (a)); /* Check fegetexcept. */