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 Use machdep.unaligned_sigbus to skip the ...



details:   https://anonhg.NetBSD.org/src/rev/e729eb46aa82
branches:  trunk
changeset: 333852:e729eb46aa82
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Nov 19 10:03:51 2014 +0000

description:
Use machdep.unaligned_sigbus to skip the unaligned access test on arm
as well.

diffstat:

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

diffs (25 lines):

diff -r dd886dde7505 -r e729eb46aa82 tests/lib/libc/gen/t_siginfo.c
--- a/tests/lib/libc/gen/t_siginfo.c    Wed Nov 19 10:01:50 2014 +0000
+++ b/tests/lib/libc/gen/t_siginfo.c    Wed Nov 19 10:03:51 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_siginfo.c,v 1.24 2014/11/04 00:20:19 justin Exp $ */
+/* $NetBSD: t_siginfo.c,v 1.25 2014/11/19 10:03:51 martin Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -448,13 +448,13 @@
 {
        struct sigaction sa;
 
-#if defined(__alpha__)
+#if defined(__alpha__) || defined(__arm__)
        int rv, val;
        size_t len = sizeof(val);
        rv = sysctlbyname("machdep.unaligned_sigbus", &val, &len, NULL, 0);
        ATF_REQUIRE(rv == 0);
        if (val == 0)
-               atf_tc_skip("SIGBUS signal not enabled for unaligned accesses");
+               atf_tc_skip("No SIGBUS signal for unaligned accesses");
 #endif
 
        sa.sa_flags = SA_SIGINFO;



Home | Main Index | Thread Index | Old Index