summaryrefslogtreecommitdiff
path: root/regress/lib/libc
diff options
context:
space:
mode:
authormbuhl <mbuhl@cvs.openbsd.org>2021-09-27 14:07:45 +0000
committermbuhl <mbuhl@cvs.openbsd.org>2021-09-27 14:07:45 +0000
commitaf713eae087863562eab28292831a8586e628168 (patch)
tree2ba03342829887f4552e7dffd03caac6f63b3153 /regress/lib/libc
parenta41771f567d346fcf8ab68809116f363320349f1 (diff)
Make t_gettimeofday pass on sparc64.
OK bluhm@
Diffstat (limited to 'regress/lib/libc')
-rw-r--r--regress/lib/libc/sys/t_gettimeofday.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/lib/libc/sys/t_gettimeofday.c b/regress/lib/libc/sys/t_gettimeofday.c
index bb716ffdcc5..015204b1fc9 100644
--- a/regress/lib/libc/sys/t_gettimeofday.c
+++ b/regress/lib/libc/sys/t_gettimeofday.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: t_gettimeofday.c,v 1.3 2020/11/09 23:18:51 bluhm Exp $ */
+/* $OpenBSD: t_gettimeofday.c,v 1.4 2021/09/27 14:07:44 mbuhl Exp $ */
/* $NetBSD: t_gettimeofday.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $ */
/*-
@@ -67,6 +67,8 @@ ATF_TC_BODY(gettimeofday_err, tc)
* allows this behaviour.
*/
ATF_REQUIRE(signal(SIGSEGV, sighandler) != SIG_ERR);
+ /* On sparc64 dereferencing -1 causes SIGBUS */
+ ATF_REQUIRE(signal(SIGBUS, sighandler) != SIG_ERR);
#endif
errno = 0;