diff options
author | ngie <ngie@FreeBSD.org> | 2014-10-23 07:07:35 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2014-10-23 07:07:35 +0000 |
commit | 063789a366c7b25200ee154bc9f7ab8bb0b0d557 (patch) | |
tree | 6ebf897e4302923ac0378e16b4515ac74b265f8a /contrib/netbsd-tests | |
parent | b7c71ae0766a45af8e1cada6b7d54cfd54aa0029 (diff) | |
download | FreeBSD-src-063789a366c7b25200ee154bc9f7ab8bb0b0d557.zip FreeBSD-src-063789a366c7b25200ee154bc9f7ab8bb0b0d557.tar.gz |
Omit all of the testcases as revoke(2) is only implemented on devfs(5)
Submitted by: pho
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/netbsd-tests')
-rw-r--r-- | contrib/netbsd-tests/lib/libc/sys/t_revoke.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/sys/t_revoke.c b/contrib/netbsd-tests/lib/libc/sys/t_revoke.c index 10fd6d6..fe59cac 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); |