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.
This commit is contained in:
rin 2020-06-20 07:30:09 +00:00
parent 79ef8ec54b
commit 4562851ebb
1 changed files with 10 additions and 1 deletions

View File

@ -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_BODY(sigbus_adraln, tc)
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 ||