[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fenv-exceptions-trapping: Avoid test failure on NetBSD/sparc
|
From: |
Bruno Haible |
|
Subject: |
fenv-exceptions-trapping: Avoid test failure on NetBSD/sparc |
|
Date: |
Sun, 05 Nov 2023 13:03:23 +0100 |
On NetBSD 8.0/sparc I see a test failure of test-fenv-except-trapping-2.sh.
This patch avoids the failure.
2023-11-05 Bruno Haible <bruno@clisp.org>
fenv-exceptions-trapping: Avoid test failure on NetBSD/sparc.
* tests/test-fenv-except-trapping-2.c (main): Skip the 'long double'
tests also on NetBSD/sparc.
diff --git a/tests/test-fenv-except-trapping-2.c
b/tests/test-fenv-except-trapping-2.c
index e11a31da84..c1d5509355 100644
--- a/tests/test-fenv-except-trapping-2.c
+++ b/tests/test-fenv-except-trapping-2.c
@@ -475,11 +475,11 @@ 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.
+ 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)
known_failure |= (type_arg[0] == 'l');
#endif
if (known_failure)
| [Prev in Thread] |
Current Thread |
[Next in Thread] |
- fenv-exceptions-trapping: Avoid test failure on NetBSD/sparc,
Bruno Haible <=