]> Savannah Git Hosting - gnulib.git/commitdiff
fenv-rounding: Avoid a test failure on OpenBSD/arm64.
authorBruno Haible <bruno@clisp.org>
Thu, 18 Jan 2024 23:54:13 +0000 (00:54 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 18 Jan 2024 23:54:13 +0000 (00:54 +0100)
* tests/test-fenv-round.c (test_towardzero, test_upward, test_downward):
Skip the 'long double' tests on OpenBSD/arm64.
* doc/posix-functions/fesetround.texi: Update platforms list.

ChangeLog
doc/posix-functions/fesetround.texi
tests/test-fenv-round.c

index dae5f8ca1170da0a40994ed223e30ba50b67dd56..a17ffa60de42a49d70e02b821c4653d8b840b791 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-01-18  Bruno Haible  <bruno@clisp.org>
+
+       fenv-rounding: Avoid a test failure on OpenBSD/arm64.
+       * tests/test-fenv-round.c (test_towardzero, test_upward, test_downward):
+       Skip the 'long double' tests on OpenBSD/arm64.
+       * doc/posix-functions/fesetround.texi: Update platforms list.
+
 2024-01-18  Bruno Haible  <bruno@clisp.org>
 
        Avoid test failures in FreeBSD's GB18030 locale.
index bb06c4192a253d5cf9c632dbb281a87ffcd2aa4b..56c887629159d022dc7c0700119dd2c854b532eb 100644 (file)
@@ -20,5 +20,5 @@ Portability problems not fixed by Gnulib:
 @itemize
 @item
 The rounding mode has no effect on @code{long double} operations on some platforms:
-FreeBSD/arm64, NetBSD/sparc64, OpenBSD/mips64.
+FreeBSD/arm64, NetBSD/sparc64, OpenBSD/arm64, OpenBSD/mips64.
 @end itemize
index db2cd01c71ac419dbdb04685261cb0049dce83d8..ce56048e51f175735f7f808e0bbc14dba3f8f5a5 100644 (file)
@@ -45,7 +45,7 @@ test_towardzero ()
     a = -1; b = 3; q = a / b; p = b * q;
     ASSERT (p > a);
   }
-#if !((defined __FreeBSD__ && defined __aarch64__) || (defined __NetBSD__ && defined __sparcv9 /* sparc64 */) || (defined __OpenBSD__ && defined __mips64))
+#if !(((defined __FreeBSD__ || defined __OpenBSD__) && defined __aarch64__) || (defined __NetBSD__ && defined __sparcv9 /* sparc64 */) || (defined __OpenBSD__ && defined __mips64))
   {
     long double volatile a, b, q, p;
 
@@ -80,7 +80,7 @@ test_upward ()
     a = -1; b = 3; q = a / b; p = b * q;
     ASSERT (p > a);
   }
-#if !((defined __FreeBSD__ && defined __aarch64__) || (defined __NetBSD__ && defined __sparcv9 /* sparc64 */) || (defined __OpenBSD__ && defined __mips64))
+#if !(((defined __FreeBSD__ || defined __OpenBSD__) && defined __aarch64__) || (defined __NetBSD__ && defined __sparcv9 /* sparc64 */) || (defined __OpenBSD__ && defined __mips64))
   {
     long double volatile a, b, q, p;
 
@@ -115,7 +115,7 @@ test_downward ()
     a = -1; b = 3; q = a / b; p = b * q;
     ASSERT (p < a);
   }
-#if !((defined __FreeBSD__ && defined __aarch64__) || (defined __NetBSD__ && defined __sparcv9 /* sparc64 */) || (defined __OpenBSD__ && defined __mips64))
+#if !(((defined __FreeBSD__ || defined __OpenBSD__) && defined __aarch64__) || (defined __NetBSD__ && defined __sparcv9 /* sparc64 */) || (defined __OpenBSD__ && defined __mips64))
   {
     long double volatile a, b, q, p;