On NetBSD 8.0/sparc I see a test failure of test-fenv-except-trapping-2.sh.
This patch avoids the failure.


2023-11-05  Bruno Haible  <br...@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.

diff --git a/tests/test-fenv-except-trapping-2.c 
b/tests/test-fenv-except-trapping-2.c
index e11a31da84..c1d5509355 100644
--- a/tests/test-fenv-except-trapping-2.c
+++ b/tests/test-fenv-except-trapping-2.c
@@ -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)




Reply via email to