NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/49653: tests/lib/libc/gen/t_siginfo:sigbus_adraln failed on m68k



>Number:         49653
>Category:       lib
>Synopsis:       tests/lib/libc/gen/t_siginfo:sigbus_adraln failed on m68k
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 10 05:20:00 +0000 2015
>Originator:     Tetsuya Isaki
>Release:        NetBSD-current (2015/02/03)
>Organization:
>Environment:
NetBSD x68k.local 7.99.4 NetBSD 7.99.4 (GENERIC) #0: Thu Feb  5 15:13:36 JST 2015  isaki@XXXXXX:/var/obj/current/x68k/obj/sys/arch/x68k/compile/GENERIC x68k
>Description:
tests/lib/libc/gen/t_siginfo:sigbus_adraln is trying to confirm
that unaligned access issues the SIGBUS, but it never happens
on m68k (>= 68020).
>How-To-Repeat:
cd /usr/tests/lib/libc/gen
atf-run t_siginfo | atf -report
(on m68k)
>Fix:
Skip it on >= 68020 system, like below?
(I don't know about ColdFire)

Index: tests/lib/libc/gen/t_siginfo.c
===================================================================
RCS file: /cvsroot/src/tests/lib/libc/gen/t_siginfo.c,v
retrieving revision 1.27
diff -u -r1.27 t_siginfo.c
--- tests/lib/libc/gen/t_siginfo.c	29 Dec 2014 18:36:27 -0000	1.27
+++ tests/lib/libc/gen/t_siginfo.c	9 Feb 2015 16:27:14 -0000
@@ -464,6 +464,9 @@
 	if (val == 0)
 		atf_tc_skip("No SIGBUS signal for unaligned accesses");
 #endif
+#if defined(__m68k__) && !defined(__mc68010__)
+	atf_tc_skip("No SIGBUS signal for unaligned accesses");
+#endif
 
 	sa.sa_flags = SA_SIGINFO;
 	sa.sa_sigaction = sigbus_action;



Home | Main Index | Thread Index | Old Index