Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/gen Skip the SIGFPE test on arm when the FPU ...



details:   https://anonhg.NetBSD.org/src/rev/f132ea798218
branches:  trunk
changeset: 803995:f132ea798218
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Nov 19 10:09:45 2014 +0000

description:
Skip the SIGFPE test on arm when the FPU does not provide exception handling.

diffstat:

 tests/lib/libc/gen/t_siginfo.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 2108f2b1023e -r f132ea798218 tests/lib/libc/gen/t_siginfo.c
--- a/tests/lib/libc/gen/t_siginfo.c    Wed Nov 19 10:03:51 2014 +0000
+++ b/tests/lib/libc/gen/t_siginfo.c    Wed Nov 19 10:09:45 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_siginfo.c,v 1.25 2014/11/19 10:03:51 martin Exp $ */
+/* $NetBSD: t_siginfo.c,v 1.26 2014/11/19 10:09:45 martin Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -310,6 +310,13 @@
                atf_tc_skip("Test does not run correctly under QEMU");
 #if defined(__powerpc__)
        atf_tc_skip("Test not valid on powerpc");
+#elif defined(__arm__) && !__SOFTFP__  /*
+        * Some NEON fpus do not implement IEEE exception handling,
+        * skip these tests if running on them and compiled for
+        * hard float.
+        */
+       if (0 == fpsetmask(fpsetmask(FP_X_INV)))
+               atf_tc_skip("FPU does not implement exception handling");
 #endif
        if (sigsetjmp(sigfpe_flt_env, 0) == 0) {
                sa.sa_flags = SA_SIGINFO;



Home | Main Index | Thread Index | Old Index