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 sigbus_adraln for powerpc.



details:   https://anonhg.NetBSD.org/src/rev/41f7d8c5f0fd
branches:  trunk
changeset: 934908:41f7d8c5f0fd
user:      rin <rin%NetBSD.org@localhost>
date:      Sat Jun 20 07:30:09 2020 +0000

description:
Skip sigbus_adraln for powerpc.

SIGBUS for unaligned accesses is not mandatory for powerpc;
most processors (not all, e.g., 403) can deal with that.

diffstat:

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

diffs (25 lines):

diff -r 3fa6d2e8462d -r 41f7d8c5f0fd tests/lib/libc/gen/t_siginfo.c
--- a/tests/lib/libc/gen/t_siginfo.c    Sat Jun 20 07:10:36 2020 +0000
+++ b/tests/lib/libc/gen/t_siginfo.c    Sat Jun 20 07:30:09 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_siginfo.c,v 1.39 2020/02/22 19:09:51 kamil Exp $ */
+/* $NetBSD: t_siginfo.c,v 1.40 2020/06/20 07:30:09 rin Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -465,6 +465,15 @@
                atf_tc_skip("No SIGBUS signal for unaligned accesses");
 #endif
 
+#ifdef __powerpc__
+       /*
+        * SIGBUS is not mandatory for powerpc; most processors (not all)
+        * can deal with unaligned accesses.
+        */
+       atf_tc_skip("SIGBUS signal for unaligned accesses is "
+           "not mandatory for this architecture");
+#endif
+
        /* m68k (except sun2) never issue SIGBUS (PR lib/49653),
         * same for armv8 or newer */
        if (strcmp(MACHINE_ARCH, "m68k") == 0 ||



Home | Main Index | Thread Index | Old Index