]> Savannah Git Hosting - gnulib.git/commitdiff
fenv-exceptions-trapping: Avoid test failure on NetBSD/sparc.
authorBruno Haible <bruno@clisp.org>
Sun, 5 Nov 2023 12:01:32 +0000 (13:01 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 5 Nov 2023 12:01:32 +0000 (13:01 +0100)
* tests/test-fenv-except-trapping-2.c (main): Skip the 'long double'
tests also on NetBSD/sparc.

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

index 509d3b8bc7d3ec929a2e1af78d62fa26de5d9494..09555677758fd90f834aeb8060517e4b9cfd0e8c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-11-05  Bruno Haible  <bruno@clisp.org>
+
+       fenv-exceptions-trapping: Avoid test failure on NetBSD/sparc.
+       * tests/test-fenv-except-trapping-2.c (main): Skip the 'long double'
+       tests also on NetBSD/sparc.
+
 2023-11-05  Bruno Haible  <bruno@clisp.org>
 
        fenv-exceptions-trapping: Update documentation.
index e11a31da84ecce1700ea914685251a4e82a72533..c1d5509355631e9344a265c7cc8b6744b4d81ba9 100644 (file)
@@ -475,11 +475,11 @@ main (int argc, char *argv[])
       #endif
       /* The 'l' tests do not work on Linux/loongarch64 with glibc 2.37.
          Likewise on Linux/alpha with glibc 2.7 on Linux 2.6.26.
-         Likewise on FreeBSD 12.2/sparc.
+         Likewise on FreeBSD 12.2/sparc and NetBSD 8.0/sparc.
          Cause unknown.  */
       #if (__GLIBC__ >= 2 && defined __loongarch__) \
           || ((__GLIBC__ == 2 && __GLIBC_MINOR__ < 36) && defined __alpha) \
-          || (defined __FreeBSD__ && defined __sparc)
+          || ((defined __FreeBSD__ || defined __NetBSD__) && defined __sparc)
       known_failure |= (type_arg[0] == 'l');
       #endif
       if (known_failure)