From e996bb8945a9b490506a4556ec926104c2964866 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Thu, 23 Oct 2014 07:07:35 +0000 Subject: [PATCH] Omit all of the testcases as revoke(2) is only implemented on devfs(5) Submitted by: pho Sponsored by: EMC / Isilon Storage Division --- contrib/netbsd-tests/lib/libc/sys/t_revoke.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/contrib/netbsd-tests/lib/libc/sys/t_revoke.c b/contrib/netbsd-tests/lib/libc/sys/t_revoke.c index 10fd6d64a00b..fe59cac09568 100644 --- a/contrib/netbsd-tests/lib/libc/sys/t_revoke.c +++ b/contrib/netbsd-tests/lib/libc/sys/t_revoke.c @@ -58,6 +58,9 @@ ATF_TC_BODY(revoke_basic, tc) size_t i, n; int *buf; +#if defined(__FreeBSD__) + atf_tc_skip("revoke(2) is only implemented for devfs(5)."); +#endif (void)memset(&res, 0, sizeof(struct rlimit)); (void)getrlimit(RLIMIT_NOFILE, &res); @@ -113,6 +116,9 @@ ATF_TC_BODY(revoke_err, tc) errno = 0; ATF_REQUIRE_ERRNO(ENAMETOOLONG, revoke(buf) == -1); +#if defined(__FreeBSD__) + atf_tc_skip("revoke(2) is only implemented for devfs(5)."); +#endif errno = 0; ATF_REQUIRE_ERRNO(EPERM, revoke("/etc/passwd") == -1); @@ -133,6 +139,9 @@ ATF_TC_BODY(revoke_perm, tc) int fd, sta; pid_t pid; +#if defined(__FreeBSD__) + atf_tc_skip("revoke(2) is only implemented for devfs(5)."); +#endif pw = getpwnam("nobody"); fd = open(path, O_RDWR | O_CREAT, 0600);