From 8f6988db2174571354a32d04f78199edcf8c1843 Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 26 Jan 2019 15:46:27 +0000 Subject: [PATCH] aarch64 does not trap on unaligned acces --- tests/lib/libc/gen/t_siginfo.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/lib/libc/gen/t_siginfo.c b/tests/lib/libc/gen/t_siginfo.c index 2dfdfbce953f..0b2a66d2b371 100644 --- a/tests/lib/libc/gen/t_siginfo.c +++ b/tests/lib/libc/gen/t_siginfo.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_siginfo.c,v 1.33 2019/01/23 17:36:01 martin Exp $ */ +/* $NetBSD: t_siginfo.c,v 1.34 2019/01/26 15:46:27 martin Exp $ */ /*- * Copyright (c) 2010 The NetBSD Foundation, Inc. @@ -464,8 +464,10 @@ ATF_TC_BODY(sigbus_adraln, tc) atf_tc_skip("No SIGBUS signal for unaligned accesses"); #endif - /* m68k (except sun2) never issue SIGBUS (PR lib/49653) */ - if (strcmp(MACHINE_ARCH, "m68k") == 0) + /* m68k (except sun2) never issue SIGBUS (PR lib/49653), + * same for armv8 or newer */ + if (strcmp(MACHINE_ARCH, "m68k") == 0 || + strcmp(MACHINE_ARCH, "aarch64") == 0) atf_tc_skip("No SIGBUS signal for unaligned accesses"); sa.sa_flags = SA_SIGINFO;