From 1693f5dc09991f8f54143e661573fe1dad6336af Mon Sep 17 00:00:00 2001 From: rin Date: Sat, 7 May 2022 13:14:16 +0000 Subject: [PATCH] Skip sigfpe_int also for sh3; integer division by zero is not trapped. --- tests/lib/libc/gen/t_siginfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lib/libc/gen/t_siginfo.c b/tests/lib/libc/gen/t_siginfo.c index 295ac5fcc49e..f20243009f94 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.46 2021/12/10 20:36:05 andvar Exp $ */ +/* $NetBSD: t_siginfo.c,v 1.47 2022/05/07 13:14:16 rin Exp $ */ /*- * Copyright (c) 2010 The NetBSD Foundation, Inc. @@ -367,7 +367,7 @@ ATF_TC_BODY(sigfpe_int, tc) struct sigaction sa; long l = strtol("0", NULL, 10); -#if defined(__powerpc__) || defined(__aarch64__) +#if defined(__aarch64__) || defined(__powerpc__) || defined(__sh3__) atf_tc_skip("Integer division by zero doesn't trap"); #endif if (sigsetjmp(sigfpe_int_env, 0) == 0) {