From: Bruno Haible Date: Sun, 5 Nov 2023 12:01:32 +0000 (+0100) Subject: fenv-exceptions-trapping: Avoid test failure on NetBSD/sparc. X-Git-Tag: v1.0~648 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26d76def990e5a613381eb17ba88a1e1d178e4c7;p=thirdparty%2Fgnulib.git 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/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)