summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-04-07 06:21:33 +0000
committerngie <ngie@FreeBSD.org>2016-04-07 06:21:33 +0000
commit27fc2724b62d2680680bb625ce5191f46c93311b (patch)
treefd9106aa0927c0403e9cba4c0eed46357780ba6e /contrib/netbsd-tests/lib/libc
parent4ca2f015b050cde68fe91a8138b89220d58c27cc (diff)
downloadFreeBSD-src-27fc2724b62d2680680bb625ce5191f46c93311b.zip
FreeBSD-src-27fc2724b62d2680680bb625ce5191f46c93311b.tar.gz
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. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
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