summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-04-15 01:20:14 +0000
committerngie <ngie@FreeBSD.org>2016-04-15 01:20:14 +0000
commit0fe8ad6bc5e70f4f6b604c03c315c75236b4dd57 (patch)
treea05846a355726aaaf463b06ce9ad146dd28936df /contrib/netbsd-tests/lib/libc
parent00f0196ec6fea47d71b496381a4b4ce1fdcbd5ed (diff)
downloadFreeBSD-src-0fe8ad6bc5e70f4f6b604c03c315c75236b4dd57.zip
FreeBSD-src-0fe8ad6bc5e70f4f6b604c03c315c75236b4dd57.tar.gz
MFC r297637:
Disable the NetBSD-specific EFAULT requirements test in gettimeofday_err FreeBSD doesn't specifically list this as a supported error, and in some configurations/versions of FreeBSD, this test will segfault as the memory address might be evaluated in userspace, instead of in kernel space like in NetBSD.
Diffstat (limited to 'contrib/netbsd-tests/lib/libc')
-rw-r--r--contrib/netbsd-tests/lib/libc/sys/t_gettimeofday.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/sys/t_gettimeofday.c b/contrib/netbsd-tests/lib/libc/sys/t_gettimeofday.c
index 1cf303b..4d82a26 100644
--- a/contrib/netbsd-tests/lib/libc/sys/t_gettimeofday.c
+++ b/contrib/netbsd-tests/lib/libc/sys/t_gettimeofday.c
@@ -46,9 +46,11 @@ ATF_TC_HEAD(gettimeofday_err, tc)
ATF_TC_BODY(gettimeofday_err, tc)
{
+#ifdef __NetBSD__
errno = 0;
ATF_REQUIRE_ERRNO(EFAULT, gettimeofday((void *)-1, NULL) != 0);
+#endif
}
ATF_TC(gettimeofday_mono);
OpenPOWER on IntegriCloud