]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
fenv-rounding tests: Avoid test failure on Android.
authorCollin Funk <collin.funk1@gmail.com>
Tue, 21 Oct 2025 03:50:21 +0000 (20:50 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Tue, 21 Oct 2025 23:30:59 +0000 (16:30 -0700)
* tests/test-fenv-round.c (test_towardzero, test_upward)
(test_downward): Disable tests that are known to fail.
* doc/posix-functions/fesetround.texi: Update list of platforms.

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

index 099df21e820008097bf83c3ca3cbee322f859692..c674c1e20368436b0a17e2aef29ba73d23f01545 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2025-10-21  Collin Funk  <collin.funk1@gmail.com>
 
+       fenv-rounding tests: Avoid test failure on Android.
+       * tests/test-fenv-round.c (test_towardzero, test_upward)
+       (test_downward): Disable tests that are known to fail.
+       * doc/posix-functions/fesetround.texi: Update list of platforms.
+
        snan tests: Avoid test failure on Android.
        * tests/test-snan-1.c (main): Disable test that is known to fail.
 
index 9106b84467bb1a47e21680c83cac9519f57055b8..d7a14f2e42b205c854715eec6686cf530d4365a6 100644 (file)
@@ -21,5 +21,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/arm64, OpenBSD/mips64.
+Android/arm64, FreeBSD/arm64, NetBSD/sparc64, OpenBSD/arm64, OpenBSD/mips64.
 @end itemize
index 746cd635413c31b8f0a4301a788b607e08c99f40..38426f0dcee8db90986f2740c027ff2f061cf649 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 __OpenBSD__) && defined __aarch64__) || (defined __NetBSD__ && defined __sparcv9 /* sparc64 */) || (defined __OpenBSD__ && defined __mips64))
+#if !(((defined __FreeBSD__ || defined __OpenBSD__ || defined __ANDROID__) && 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 __OpenBSD__) && defined __aarch64__) || (defined __NetBSD__ && defined __sparcv9 /* sparc64 */) || (defined __OpenBSD__ && defined __mips64))
+#if !(((defined __FreeBSD__ || defined __OpenBSD__ || defined __ANDROID__) && 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 __OpenBSD__) && defined __aarch64__) || (defined __NetBSD__ && defined __sparcv9 /* sparc64 */) || (defined __OpenBSD__ && defined __mips64))
+#if !(((defined __FreeBSD__ || defined __OpenBSD__ || defined __ANDROID__) && defined __aarch64__) || (defined __NetBSD__ && defined __sparcv9 /* sparc64 */) || (defined __OpenBSD__ && defined __mips64))
   {
     long double volatile a, b, q, p;