Searched refs:EXPECT_SYSCALL_FAIL (Results 1 – 5 of 5) sorted by relevance
/freebsd/contrib/capsicum-test/ |
H A D | capsicum-test.h | 141 #define EXPECT_SYSCALL_FAIL(E, C) \ macro 172 EXPECT_SYSCALL_FAIL(E_NO_TRAVERSE_O_BENEATH, result); \ 174 EXPECT_SYSCALL_FAIL(E_NO_TRAVERSE_CAPABILITY, result); \ 183 EXPECT_SYSCALL_FAIL(E_NO_TRAVERSE_CAPABILITY, result); \ 189 #define EXPECT_CAPMODE(C) EXPECT_SYSCALL_FAIL(ECAPMODE, C) 196 #define EXPECT_NOTCAPABLE(C) EXPECT_SYSCALL_FAIL(ENOTCAPABLE, C)
|
H A D | fexecve.cc | 184 EXPECT_SYSCALL_FAIL(ECAPMODE, in TEST_F() 186 EXPECT_SYSCALL_FAIL(E_NO_TRAVERSE_CAPABILITY, in TEST_F() 196 EXPECT_SYSCALL_FAIL(E_NO_TRAVERSE_CAPABILITY, in TEST_F()
|
H A D | openat.cc | 300 …EXPECT_SYSCALL_FAIL(E_TOO_MANY_LINKS, openat(dir_fd_, "symlink.samedir", O_RDONLY|O_NOFOLLOW|oflag… in CheckPolicing() 301 … EXPECT_SYSCALL_FAIL(E_TOO_MANY_LINKS, openat(dir_fd_, "symlink.down", O_RDONLY|O_NOFOLLOW|oflag)); in CheckPolicing()
|
H A D | procdesc.cc | 601 EXPECT_SYSCALL_FAIL(EBADF, pdkill(pid, SIGKILL)); in FORK_TEST() 607 EXPECT_SYSCALL_FAIL(EBADF, pdwait4_(pd, &status, WNOHANG, NULL)); in FORK_TEST()
|
H A D | linux.cc | 1096 EXPECT_SYSCALL_FAIL(ENOMEM, fchmod(fd, 0644)); in TEST() 1098 EXPECT_SYSCALL_FAIL(ECAPMODE, open(TmpFile("cap_bpf_capmode"), O_RDONLY)); in TEST() 1101 EXPECT_SYSCALL_FAIL(ENOEXEC, fstat(fd, &buf)); in TEST()
|