]> Savannah Git Hosting - gnulib.git/commitdiff
snan: Avoid test failures on OpenBSD/mips64.
authorBruno Haible <bruno@clisp.org>
Tue, 7 Nov 2023 01:05:05 +0000 (02:05 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 7 Nov 2023 01:05:05 +0000 (02:05 +0100)
* tests/test-snan-1.c (main): Skip the 'long double' test on
OpenBSD/mips64.
* tests/test-snan-2.c (main): Likewise.

ChangeLog
tests/test-snan-1.c
tests/test-snan-2.c

index ac84b2873462b9343fbd05c7a209450d7a1ca4c4..46a5974795ec074bd9c01ae729d1b311e462d673 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2023-11-06  Bruno Haible  <bruno@clisp.org>
 
+       snan: Avoid test failures on OpenBSD/mips64.
+       * tests/test-snan-1.c (main): Skip the 'long double' test on
+       OpenBSD/mips64.
+       * tests/test-snan-2.c (main): Likewise.
+
        fenv-*: Avoid test failures on OpenBSD/mips64.
        * tests/test-fenv-round.c (test_towardzero, test_upward, test_downward):
        Skip the 'long double' tests on OpenBSD/mips64.
index 3b1e0e94274f4abefc2f4aa300289b9ce5b468a6..74d980f317a345f0ed1d2eb993850dfd104895cd 100644 (file)
@@ -83,14 +83,14 @@ main ()
   #endif
   /* This test does not work on eglibc 2.13/mips64
      (bug in libc function __addtf3).
-     This test does not work on FreeBSD/arm64
+     This test does not work on FreeBSD/arm64 and OpenBSD/mips64
      (bug in libc function __addtf3).
      This test does not work on FreeBSD/sparc64 and NetBSD/sparc64
      (bug in libc function _Qp_add).
      This test does not work on MSVC/i386, because of the general IA-32
      problem (see above) and 'long double' == 'double'.  */
   #if !((((__GLIBC__ == 2 && __GLIBC_MINOR__ < 19 && defined __mips64) \
-          || ((defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__) && (defined __aarch64__ || defined __sparc__))) \
+          || ((defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__) && (defined __aarch64__ || defined __mips64__ || defined __sparc__))) \
          && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE) \
         || ((defined __i386 || defined _M_IX86) && HAVE_SAME_LONG_DOUBLE_AS_DOUBLE))
   {
index 0a722a05ac914a5fb0cc421f8cbedcb614a83fc9..817540c74cf71d51b1fe13f8cb0aa0b27d4805f9 100644 (file)
@@ -108,7 +108,7 @@ main (int argc, char *argv[])
            Cause unknown.
            This test does not work on eglibc 2.13/mips64
            (bug in libc function __addtf3).
-           This test does not work on FreeBSD/arm64
+           This test does not work on FreeBSD/arm64 and OpenBSD/mips64
            (bug in libc function __addtf3).
            This test does not work on FreeBSD/sparc64 and NetBSD/sparc64
            (bug in libc function _Qp_add).
@@ -118,7 +118,7 @@ main (int argc, char *argv[])
         #if !((__GLIBC__ == 2 && __GLIBC_MINOR__ < 36 && defined __alpha__) \
               || (__GLIBC__ >= 2 && defined __loongarch__) \
               || (((__GLIBC__ == 2 && __GLIBC_MINOR__ < 19 && defined __mips64) \
-                   || ((defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__) && (defined __aarch64__ || defined __sparc__))) \
+                   || ((defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__) && (defined __aarch64__ || defined __mips64__ || defined __sparc__))) \
                   && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE) \
               || (defined __CYGWIN__ && defined __i386) \
               || (((defined __i386 || defined _M_IX86) \