Module Name: src
Committed By: rin
Date: Sat Jun 20 07:30:09 UTC 2020
Modified Files:
src/tests/lib/libc/gen: t_siginfo.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/tests/lib/libc/gen/t_siginfo.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/lib/libc/gen/t_siginfo.c
diff -u src/tests/lib/libc/gen/t_siginfo.c:1.39 src/tests/lib/libc/gen/t_siginfo.c:1.40
--- src/tests/lib/libc/gen/t_siginfo.c:1.39 Sat Feb 22 19:09:51 2020
+++ src/tests/lib/libc/gen/t_siginfo.c Sat Jun 20 07:30:09 2020
@@ -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 ||