Omit all of the testcases as revoke(2) is only implemented on devfs(5)
Submitted by: pho Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
b7c71ae076
commit
063789a366
@ -58,6 +58,9 @@ ATF_TC_BODY(revoke_basic, tc)
|
|||||||
size_t i, n;
|
size_t i, n;
|
||||||
int *buf;
|
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)memset(&res, 0, sizeof(struct rlimit));
|
||||||
(void)getrlimit(RLIMIT_NOFILE, &res);
|
(void)getrlimit(RLIMIT_NOFILE, &res);
|
||||||
|
|
||||||
@ -113,6 +116,9 @@ ATF_TC_BODY(revoke_err, tc)
|
|||||||
errno = 0;
|
errno = 0;
|
||||||
ATF_REQUIRE_ERRNO(ENAMETOOLONG, revoke(buf) == -1);
|
ATF_REQUIRE_ERRNO(ENAMETOOLONG, revoke(buf) == -1);
|
||||||
|
|
||||||
|
#if defined(__FreeBSD__)
|
||||||
|
atf_tc_skip("revoke(2) is only implemented for devfs(5).");
|
||||||
|
#endif
|
||||||
errno = 0;
|
errno = 0;
|
||||||
ATF_REQUIRE_ERRNO(EPERM, revoke("/etc/passwd") == -1);
|
ATF_REQUIRE_ERRNO(EPERM, revoke("/etc/passwd") == -1);
|
||||||
|
|
||||||
@ -133,6 +139,9 @@ ATF_TC_BODY(revoke_perm, tc)
|
|||||||
int fd, sta;
|
int fd, sta;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
|
|
||||||
|
#if defined(__FreeBSD__)
|
||||||
|
atf_tc_skip("revoke(2) is only implemented for devfs(5).");
|
||||||
|
#endif
|
||||||
pw = getpwnam("nobody");
|
pw = getpwnam("nobody");
|
||||||
fd = open(path, O_RDWR | O_CREAT, 0600);
|
fd = open(path, O_RDWR | O_CREAT, 0600);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user