]> Savannah Git Hosting - gnulib.git/commitdiff
fenv-exceptions-tracking-c99 tests: Avoid test failure on NetBSD/sparc.
authorBruno Haible <bruno@clisp.org>
Sat, 4 Nov 2023 15:23:16 +0000 (16:23 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 4 Nov 2023 15:26:46 +0000 (16:26 +0100)
* tests/test-fenv-except-tracking-2.c (main): On NetBSD/sparc, skip the
'long double' test.

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

index b6f7d339d1efe313c10e444010aaf32d4dfe3ea8..a5bd7473c423931065ce367f946289d2316068e4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-11-04  Bruno Haible  <bruno@clisp.org>
+
+       fenv-exceptions-tracking-c99 tests: Avoid test failure on NetBSD/sparc.
+       * tests/test-fenv-except-tracking-2.c (main): On NetBSD/sparc, skip the
+       'long double' test.
+
 2023-11-04  Bruno Haible  <bruno@clisp.org>
 
        fenv-exceptions-tracking-c99: Fix fetestexcept() override for AIX.
index e6f9bf1f9da63a8a6e4a43d82be93c2693a9d39f..1d8529ad04274014805dd5311c4a3b43295a13cd 100644 (file)
@@ -66,11 +66,11 @@ main (int argc, char *argv[])
       case 'l':
         /* This test does 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))
         {
           volatile long double a, b;
           _GL_UNUSED volatile long double c;