Module Name: src
Committed By: martin
Date: Wed Nov 19 10:03:51 UTC 2014
Modified Files:
src/tests/lib/libc/gen: t_siginfo.c
Log Message:
Use machdep.unaligned_sigbus to skip the unaligned access test on arm
as well.
To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 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.24 src/tests/lib/libc/gen/t_siginfo.c:1.25
--- src/tests/lib/libc/gen/t_siginfo.c:1.24 Tue Nov 4 00:20:19 2014
+++ src/tests/lib/libc/gen/t_siginfo.c Wed Nov 19 10:03:51 2014
@@ -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 @@ ATF_TC_BODY(sigbus_adraln, tc)
{
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;