]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
fenv-exceptions-trapping tests: Make test more debugging friendly. master
authorBruno Haible <bruno@clisp.org>
Fri, 10 Apr 2026 23:16:35 +0000 (01:16 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 10 Apr 2026 23:16:35 +0000 (01:16 +0200)
Suggested by Pali Rohár <pali.rohar@gmail.com>.

* tests/test-fenv-except-trapping-1.c (main): Add an assertion.

ChangeLog
tests/test-fenv-except-trapping-1.c

index 4b627f3ea29ce58da3edf0c03e51709529e20335..29ab05d4a34d5e03ce8e8bf2a0bba568b03abdf0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-04-10  Bruno Haible  <bruno@clisp.org>
+
+       fenv-exceptions-trapping tests: Make test more debugging friendly.
+       Suggested by Pali Rohár <pali.rohar@gmail.com>.
+       * tests/test-fenv-except-trapping-1.c (main): Add an assertion.
+
 2026-04-10  Bruno Haible  <bruno@clisp.org>
 
        sigprocmask: Allow single-thread optimization again.
index 341411bbdd4cb015736d3acdb12d485022f6980f..c9250248f9bebe6bcb33584eff593a50160cebce 100644 (file)
@@ -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.  */