From 26d76def990e5a613381eb17ba88a1e1d178e4c7 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 5 Nov 2023 13:01:32 +0100 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ tests/test-fenv-except-trapping-2.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 509d3b8bc7..0955567775 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-11-05 Bruno Haible + + 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. + 2023-11-05 Bruno Haible fenv-exceptions-trapping: Update documentation. 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) -- 2.39.5