]> Savannah Git Hosting - gnulib.git/commitdiff
fenv-*: Avoid test failures on OpenBSD/sparc64.
authorBruno Haible <bruno@clisp.org>
Fri, 19 Jan 2024 09:55:13 +0000 (10:55 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 19 Jan 2024 09:55:13 +0000 (10:55 +0100)
* tests/test-fenv-except-tracking-2.c (main): On OpenBSD/sparc64, skip
the 'long double' test.
* tests/test-fenv-except-trapping-2.c (main): Skip the 'long double'
tests also on OpenBSD/sparc64.

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

index a17ffa60de42a49d70e02b821c4653d8b840b791..196553ffadb25c0a1b997c9c6f504b71cfcd85fb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-01-19  Bruno Haible  <bruno@clisp.org>
+
+       fenv-*: Avoid test failures on OpenBSD/sparc64.
+       * tests/test-fenv-except-tracking-2.c (main): On OpenBSD/sparc64, skip
+       the 'long double' test.
+       * tests/test-fenv-except-trapping-2.c (main): Skip the 'long double'
+       tests also on OpenBSD/sparc64.
+
 2024-01-18  Bruno Haible  <bruno@clisp.org>
 
        fenv-rounding: Avoid a test failure on OpenBSD/arm64.
index 9a76c8afda4c190648f5a27558b39d6a878a5e8c..2db49498829dd01cccba79e28f92cc8a42ff0108 100644 (file)
@@ -66,12 +66,12 @@ 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 and NetBSD 8.0/sparc.
+           Likewise on FreeBSD 12.2/sparc, NetBSD 8.0/sparc, OpenBSD 7.2/sparc64.
            Likewise on OpenBSD 7.4/mips64.
            Cause unknown.  */
         #if !((__GLIBC__ >= 2 && defined __loongarch__) \
               || ((__GLIBC__ == 2 && __GLIBC_MINOR__ < 36) && defined __alpha) \
-              || ((defined __FreeBSD__ || defined __NetBSD__) && defined __sparc) \
+              || ((defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__) && defined __sparc) \
               || (defined __OpenBSD__ && defined __mips64))
         {
           volatile long double a, b;
index 63f7bc67e5a2f6dbb72ed3c52befc8942bd9487f..57b9341f46a8fce69a2025fab1e715fb14eff9a4 100644 (file)
@@ -480,12 +480,12 @@ 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 and NetBSD 8.0/sparc.
+         Likewise on FreeBSD 12.2/sparc, NetBSD 8.0/sparc, OpenBSD 7.2/sparc64.
          Likewise on OpenBSD 7.4/mips64.
          Cause unknown.  */
       #if (__GLIBC__ >= 2 && defined __loongarch__) \
           || ((__GLIBC__ == 2 && __GLIBC_MINOR__ < 36) && defined __alpha) \
-          || ((defined __FreeBSD__ || defined __NetBSD__) && defined __sparc) \
+          || ((defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__) && defined __sparc) \
           || (defined __OpenBSD__ && defined __mips64)
       known_failure |= (type_arg[0] == 'l');
       #endif