HomeSort by: relevance | last modified time | path
    Searched refs:ATF_REQUIRE_ERRNO (Results 1 - 25 of 71) sorted by relevancy

1 2 3

  /src/tests/fs/vfs/
t_ro.c 82 ATF_REQUIRE_ERRNO(EROFS, rump_sys_open(AFILE, O_CREAT|O_RDONLY,
92 ATF_REQUIRE_ERRNO(EROFS, rump_sys_unlink(AFILE) == -1);
115 ATF_REQUIRE_ERRNO(expected, rump_sys_open(AFILE, O_WRONLY) == -1);
116 ATF_REQUIRE_ERRNO(expected, rump_sys_open(AFILE, O_RDWR) == -1);
131 ATF_REQUIRE_ERRNO(EROFS, rump_sys_chmod(AFILE, 0775) == -1);
133 ATF_REQUIRE_ERRNO(EROFS, rump_sys_chown(AFILE, 1, 1) == -1);
134 ATF_REQUIRE_ERRNO(EROFS, rump_sys_utimes(AFILE, sometvs) == -1);
137 ATF_REQUIRE_ERRNO(EROFS, rump_sys_fchmod(fd, 0775) == -1);
139 ATF_REQUIRE_ERRNO(EROFS, rump_sys_fchown(fd, 1, 1) == -1);
140 ATF_REQUIRE_ERRNO(EROFS, rump_sys_futimes(fd, sometvs) == -1)
    [all...]
t_union.c 137 ATF_REQUIRE_ERRNO(ENOENT, rump_sys_stat(TFILE, &sb) == -1);
180 ATF_REQUIRE_ERRNO(ENOTEMPTY, rump_sys_rmdir(TDIR) == -1);
183 ATF_REQUIRE_ERRNO(ENOENT, rump_sys_stat(TDFILE, &sb) == -1);
184 ATF_REQUIRE_ERRNO(ENOENT, rump_sys_stat(TDIR, &sb) == -1);
188 ATF_REQUIRE_ERRNO(ENOENT, rump_sys_stat(TDFILE, &sb) == -1);
  /src/tests/lib/libc/sys/
t_truncate.c 99 ATF_REQUIRE_ERRNO(EBADF, ftruncate(-1, 999) == -1);
102 ATF_REQUIRE_ERRNO(EINVAL, ftruncate(fd, 999) == -1);
156 ATF_REQUIRE_ERRNO(EFAULT, truncate((void *)-1, 999) == -1);
159 ATF_REQUIRE_ERRNO(EISDIR, truncate("/etc", 999) == -1);
162 ATF_REQUIRE_ERRNO(ENOENT, truncate("/a/b/c/d/e/f/g", 999) == -1);
167 ATF_REQUIRE_ERRNO(EACCES, truncate(buf, 999) == -1);
t_unlink.c 66 ATF_REQUIRE_ERRNO(ENOENT, open(path, O_RDONLY) == -1);
88 ATF_REQUIRE_ERRNO(EBUSY, unlink("/") == -1);
91 ATF_REQUIRE_ERRNO(ENAMETOOLONG, unlink(buf) == -1);
94 ATF_REQUIRE_ERRNO(ENOENT, unlink("/a/b/c/d/e/f/g/h/i/j/k/l/m") == -1);
115 ATF_REQUIRE_ERRNO(ENOENT, open(path, O_RDONLY) == -1);
141 ATF_REQUIRE_ERRNO(EACCES, unlink("/root/.profile") == -1);
t_link.c 124 ATF_REQUIRE_ERRNO(EEXIST, link(path, pathl) == -1);
127 ATF_REQUIRE_ERRNO(ENAMETOOLONG, link(buf, "xxx") == -1);
130 ATF_REQUIRE_ERRNO(ENOENT, link(path, "/d/c/b/a") == -1);
133 ATF_REQUIRE_ERRNO(ENOENT, link("/a/b/c/d", path) == -1);
136 ATF_REQUIRE_ERRNO(ENOENT, link("/a/b/c/d", "/d/c/b/a") == -1);
139 ATF_REQUIRE_ERRNO(EFAULT, link(path, (const char *)-1) == -1);
142 ATF_REQUIRE_ERRNO(EFAULT, link((const char *)-1, "xxx") == -1);
173 ATF_REQUIRE_ERRNO(EACCES,
t_mknod.c 62 ATF_REQUIRE_ERRNO(EINVAL, mknod(path, S_IFCHR, -1) == -1);
65 ATF_REQUIRE_ERRNO(ENAMETOOLONG, mknod(buf, S_IFCHR, 0) == -1);
68 ATF_REQUIRE_ERRNO(EFAULT, mknod((char *)-1, S_IFCHR, 0) == -1);
71 ATF_REQUIRE_ERRNO(ENOENT, mknod("/a/b/c/d/e/f/g", S_IFCHR, 0) == -1);
97 ATF_REQUIRE_ERRNO(EEXIST,
104 ATF_REQUIRE_ERRNO(EEXIST, mknod(path, S_IFCHR, 0) == -1);
125 ATF_REQUIRE_ERRNO(EPERM, mknod(path, S_IFCHR, 0) == -1);
128 ATF_REQUIRE_ERRNO(EPERM, mknod(path, S_IFBLK, 0) == -1);
t_mkfifo.c 131 ATF_REQUIRE_ERRNO(EFAULT, mkfifo((char *)-1, 0600) == -1);
134 ATF_REQUIRE_ERRNO(EEXIST, mkfifo("/etc/passwd", 0600) == -1);
137 ATF_REQUIRE_ERRNO(EEXIST, mkfifo(path, 0600) == -1);
140 ATF_REQUIRE_ERRNO(ENAMETOOLONG, mkfifo(buf, 0600) == -1);
143 ATF_REQUIRE_ERRNO(ENOENT, mkfifo("/a/b/c/d/e/f/g", 0600) == -1);
190 ATF_REQUIRE_ERRNO(ENXIO, open(path, O_WRONLY | O_NONBLOCK) == -1);
220 ATF_REQUIRE_ERRNO(EACCES, mkfifo("/root/fifo", 0600) == -1);
228 ATF_REQUIRE_ERRNO(EFTYPE, chmod(path, 1777) == -1);
t_mkdir.c 70 ATF_REQUIRE_ERRNO(EEXIST, mkdir("/etc", 0500) == -1);
74 ATF_REQUIRE_ERRNO(EFAULT, mkdir((void *)-1, 0500) == -1);
77 ATF_REQUIRE_ERRNO(ENAMETOOLONG, mkdir(buf, 0500) == -1);
80 ATF_REQUIRE_ERRNO(ENOENT, mkdir("/a/b/c/d/e/f/g/h/i/j/k", 0500) == -1);
93 ATF_REQUIRE_ERRNO(EACCES, mkdir("/usr/__nonexistent__", 0500) == -1);
t_dup.c 146 ATF_REQUIRE_ERRNO(EBADF, dup2(-1, -1) == -1);
149 ATF_REQUIRE_ERRNO(EBADF, dup2(fd, -1) == -1);
152 ATF_REQUIRE_ERRNO(EBADF, dup2(-1, fd) == -1);
176 ATF_REQUIRE_ERRNO(EBADF, dup2(STDERR_FILENO, res.rlim_cur + 1) == -1);
211 ATF_REQUIRE_ERRNO(EINVAL, dup3(fd, fd, O_CLOEXEC) == -1);
214 ATF_REQUIRE_ERRNO(EINVAL, dup3(-1, -1, O_CLOEXEC) == -1);
217 ATF_REQUIRE_ERRNO(EBADF, dup3(fd, -1, O_CLOEXEC) == -1);
220 ATF_REQUIRE_ERRNO(EBADF, dup3(-1, fd, O_CLOEXEC) == -1);
223 ATF_REQUIRE_ERRNO(EINVAL, dup3(fd, 1, O_NOFOLLOW) == -1);
242 ATF_REQUIRE_ERRNO(EBADF, dup3(STDERR_FILENO
    [all...]
t_wait_noproc.c 54 ATF_REQUIRE_ERRNO(ECHILD, wait(NULL) == -1);
68 ATF_REQUIRE_ERRNO(ECHILD, waitpid(WAIT_ANY, NULL, TWAIT_OPTION) == -1);
81 ATF_REQUIRE_ERRNO(ECHILD,
95 ATF_REQUIRE_ERRNO(ECHILD, wait3(NULL, TWAIT_OPTION, NULL) == -1);
108 ATF_REQUIRE_ERRNO(ECHILD,
122 ATF_REQUIRE_ERRNO(ECHILD,
232 ATF_REQUIRE_ERRNO(ECHILD,
254 ATF_REQUIRE_ERRNO(ECHILD,
274 ATF_REQUIRE_ERRNO(ECHILD,
295 ATF_REQUIRE_ERRNO(ECHILD
    [all...]
t_getitimer.c 107 ATF_REQUIRE_ERRNO(EINVAL, getitimer(-1, &it) == -1);
110 ATF_REQUIRE_ERRNO(EINVAL, getitimer(INT_MAX, &it) == -1);
113 ATF_REQUIRE_ERRNO(EFAULT, getitimer(ITIMER_REAL, (void *)-1) == -1);
161 ATF_REQUIRE_ERRNO(EINVAL, setitimer(-1, &it, &ot) == -1);
164 ATF_REQUIRE_ERRNO(EINVAL, setitimer(INT_MAX, &it, &ot) == -1);
167 ATF_REQUIRE_ERRNO(EFAULT, setitimer(ITIMER_REAL,(void*)-1, &ot) == -1);
t_nanosleep.c 110 ATF_REQUIRE_ERRNO(EINVAL, nanosleep(&ts, NULL) == -1);
115 ATF_REQUIRE_ERRNO(EINVAL, nanosleep(&ts, NULL) == -1);
120 ATF_REQUIRE_ERRNO(0, nanosleep(&ts, NULL) == 0);
123 ATF_REQUIRE_ERRNO(EFAULT, nanosleep((void *)-1, NULL) == -1);
t_revoke.c 111 ATF_REQUIRE_ERRNO(EFAULT, revoke((char *)-1) == -1);
114 ATF_REQUIRE_ERRNO(ENAMETOOLONG, revoke(buf) == -1);
117 ATF_REQUIRE_ERRNO(EPERM, revoke("/etc/passwd") == -1);
120 ATF_REQUIRE_ERRNO(ENOENT, revoke("/etc/xxx/yyy") == -1);
t_mlock.c 101 ATF_REQUIRE_ERRNO(ENOMEM, mlock(NULL, page) == -1);
104 ATF_REQUIRE_ERRNO(ENOMEM, mlock((char *)0, page) == -1);
107 ATF_REQUIRE_ERRNO(ENOMEM, mlock((char *)-1, page) == -1);
110 ATF_REQUIRE_ERRNO(ENOMEM, munlock(NULL, page) == -1);
113 ATF_REQUIRE_ERRNO(ENOMEM, munlock((char *)0, page) == -1);
116 ATF_REQUIRE_ERRNO(ENOMEM, munlock((char *)-1, page) == -1);
127 ATF_REQUIRE_ERRNO(ENOMEM, munlock(buf, page) == -1);
155 ATF_REQUIRE_ERRNO(ENOMEM, mlock(invalid_ptr, page) == -1);
158 ATF_REQUIRE_ERRNO(ENOMEM, munlock(invalid_ptr, page) == -1);
t_clone.c 62 ATF_REQUIRE_ERRNO(errno, stack != MAP_FAILED);
75 ATF_REQUIRE_ERRNO(errno, munmap(stack, STACKSIZE) != -1);
133 ATF_REQUIRE_ERRNO(errno, sigprocmask(SIG_BLOCK, &mask, NULL) != -1);
234 ATF_REQUIRE_ERRNO(errno, getrlimit(RLIMIT_NPROC, &rl) != -1);
239 ATF_REQUIRE_ERRNO(errno, setrlimit(RLIMIT_NPROC, &rl) != -1);
t_ptrace.c 90 ATF_REQUIRE_ERRNO(EPERM, ptrace(PT_ATTACH, 0, NULL, 0) == -1);
104 ATF_REQUIRE_ERRNO(EPERM, ptrace(PT_ATTACH, 1, NULL, 0) == -1);
128 ATF_REQUIRE_ERRNO(EPERM, ptrace(PT_ATTACH, 1, NULL, 0) == -1);
140 ATF_REQUIRE_ERRNO(EINVAL, ptrace(PT_ATTACH, getpid(), NULL, 0) == -1);
230 ATF_REQUIRE_ERRNO(EBUSY, ptrace(PT_TRACE_ME, 0, NULL, 0) == -1);
t_stat.c 169 ATF_REQUIRE_ERRNO(EBADF, fstat(-1, &st) == -1);
172 ATF_REQUIRE_ERRNO(ENAMETOOLONG, stat(buf, &st) == -1);
175 ATF_REQUIRE_ERRNO(ENAMETOOLONG, lstat(buf, &st) == -1);
178 ATF_REQUIRE_ERRNO(EFAULT, stat((void *)-1, &st) == -1);
181 ATF_REQUIRE_ERRNO(EFAULT, lstat((void *)-1, &st) == -1);
184 ATF_REQUIRE_ERRNO(EFAULT, stat("/etc/passwd", (void *)-1) == -1);
187 ATF_REQUIRE_ERRNO(EFAULT, lstat("/etc/passwd", (void *)-1) == -1);
190 ATF_REQUIRE_ERRNO(ENOENT, stat("/a/b/c/d/e/f/g/h/i/j/k", &st) == -1);
193 ATF_REQUIRE_ERRNO(ENOENT, lstat("/a/b/c/d/e/f/g/h/i/j/k", &st) == -1);
353 ATF_REQUIRE_ERRNO(EINPROGRESS
    [all...]
t_listen.c 71 ATF_REQUIRE_ERRNO(ENOTSOCK, listen(fdc, 1) == -1);
84 ATF_REQUIRE_ERRNO(EINVAL, listen(fdb, 1) == -1);
89 ATF_REQUIRE_ERRNO(EBADF, connect(fdb,
t_gettimeofday.c 51 ATF_REQUIRE_ERRNO(EFAULT, gettimeofday((void *)-1, NULL) != 0);
  /src/tests/kernel/
t_epoll.c 55 ATF_REQUIRE_ERRNO(EINVAL, true);
59 ATF_REQUIRE_ERRNO(EINVAL, true);
101 ATF_REQUIRE_ERRNO(EBADF, true);
121 ATF_REQUIRE_ERRNO(EBADF, true);
144 ATF_REQUIRE_ERRNO(EEXIST, true);
165 ATF_REQUIRE_ERRNO(ENOENT, true);
169 ATF_REQUIRE_ERRNO(ENOENT, true);
187 ATF_REQUIRE_ERRNO(EINVAL, true);
207 ATF_REQUIRE_ERRNO(ELOOP, true);
232 ATF_REQUIRE_ERRNO(EINVAL, true)
    [all...]
t_lua.c 130 ATF_REQUIRE_ERRNO(EACCES, ioctl(fd, LUACREATE, &cr) == -1);
131 ATF_REQUIRE_ERRNO(EACCES, ioctl(fd, LUALOAD, &ld) == -1);
132 ATF_REQUIRE_ERRNO(EACCES, ioctl(fd, LUAREQUIRE, &rq) == -1);
133 ATF_REQUIRE_ERRNO(EACCES, ioctl(fd, LUADESTROY, &cr) == -1);
142 ATF_REQUIRE_ERRNO(EACCES, ioctl(fd, LUAINFO, &info) == -1);
146 ATF_REQUIRE_ERRNO(ENXIO, ioctl(fd, LUACREATE, &cr) == -1);
154 ATF_REQUIRE_ERRNO(EBUSY, ioctl(fd, LUACREATE, &cr) == -1);
  /src/external/bsd/atf/dist/atf-c/
macros_h_test.c 75 /* Check that ATF_REQUIRE_ERRNO does not contain a semicolon that would
77 ATF_REQUIRE_ERRNO(1, 1 == 1);
78 ATF_REQUIRE_ERRNO(2, 2 == 2);
  /src/external/bsd/atf/dist/atf-c++/
macros_hpp_test.cpp 94 // Check that ATF_REQUIRE_ERRNO does not contain a semicolon that would
96 ATF_REQUIRE_ERRNO(1, 1 == 1);
97 ATF_REQUIRE_ERRNO(2, 2 == 2);
  /src/tests/lib/librumpclient/
t_fd.c 83 ATF_REQUIRE_ERRNO(EBADF, fstat(0, &sb) == -1);
84 ATF_REQUIRE_ERRNO(EBADF, fstat(1, &sb) == -1);
85 ATF_REQUIRE_ERRNO(EBADF, fstat(2, &sb) == -1);
  /src/tests/rump/rumpvfs/
t_basic.c 66 ATF_REQUIRE_ERRNO(EBADF, rv == -1);

Completed in 67 milliseconds

1 2 3