/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_poll.c | 175 ATF_REQUIRE_EQ_MSG(ret = poll(&pfds[0], 1, 1), 0, in ATF_TC_BODY() 177 ATF_REQUIRE_EQ_MSG(pfds[0].revents, 0, "got: %d", pfds[0].revents); in ATF_TC_BODY() 178 ATF_REQUIRE_EQ_MSG(pfds[1].revents, -1, "got: %d", pfds[1].revents); in ATF_TC_BODY() 183 ATF_REQUIRE_EQ_MSG(ret = poll(&pfds[1], 1, 1), 1, in ATF_TC_BODY() 185 ATF_REQUIRE_EQ_MSG(pfds[0].revents, -1, "got: %d", pfds[0].revents); in ATF_TC_BODY() 186 ATF_REQUIRE_EQ_MSG(pfds[1].revents, POLLOUT, "got: %d",\ in ATF_TC_BODY() 192 ATF_REQUIRE_EQ_MSG(ret = poll(pfds, 2, 1), 1, in ATF_TC_BODY() 194 ATF_REQUIRE_EQ_MSG(pfds[0].revents, 0, "got: %d", pfds[0].revents); in ATF_TC_BODY() 195 ATF_REQUIRE_EQ_MSG(pfds[1].revents, POLLOUT, "got: %d", in ATF_TC_BODY() 204 ATF_REQUIRE_EQ_MSG(ret = poll(pfds, 2, 1), 2, in ATF_TC_BODY() [all …]
|
H A D | t_socketpair.c | 142 ATF_REQUIRE_EQ_MSG(fd, 3, in ATF_TC_BODY() 145 ATF_REQUIRE_EQ_MSG(fd, lowfd, in ATF_TC_BODY()
|
H A D | t_write.c | 212 ATF_REQUIRE_EQ_MSG(retval, -1, "got: %zd", retval); in ATF_TC_BODY() 213 ATF_REQUIRE_EQ_MSG(errno, EINVAL, "got: %s", strerror(errno)); in ATF_TC_BODY()
|
/freebsd/contrib/netbsd-tests/lib/libc/stdlib/ |
H A D | t_posix_memalign.c | 72 ATF_REQUIRE_EQ_MSG(ret, EINVAL, in ATF_TC_BODY() 75 ATF_REQUIRE_EQ_MSG(ret, 0, in ATF_TC_BODY() 77 ATF_REQUIRE_EQ_MSG(((intptr_t)p) & (align[i] - 1), 0, in ATF_TC_BODY() 109 ATF_REQUIRE_EQ_MSG(errno, EINVAL, in ATF_TC_BODY() 113 ATF_REQUIRE_EQ_MSG(errno, ENOMEM, in ATF_TC_BODY() 118 ATF_REQUIRE_EQ_MSG(align[i] == 0, false, in ATF_TC_BODY() 121 ATF_REQUIRE_EQ_MSG((align[i] - 1) & align[i], 0, in ATF_TC_BODY() 133 ATF_REQUIRE_EQ_MSG(size[i] % align[i], 0, in ATF_TC_BODY() 137 ATF_REQUIRE_EQ_MSG(((intptr_t)p) & (align[i] - 1), 0, in ATF_TC_BODY()
|
/freebsd/tests/sys/kern/ |
H A D | sigwait.c | 134 ATF_REQUIRE_EQ_MSG(-1, rv, in test_sigtimedwait_timeout_eagain() 136 ATF_REQUIRE_EQ_MSG(EAGAIN, errno, in test_sigtimedwait_timeout_eagain() 219 ATF_REQUIRE_EQ_MSG(-1, rv, in ATF_TC_BODY() 221 ATF_REQUIRE_EQ_MSG(EINTR, errno, in ATF_TC_BODY() 245 ATF_REQUIRE_EQ_MSG(-1, rv, in ATF_TC_BODY() 247 ATF_REQUIRE_EQ_MSG(EINTR, errno, in ATF_TC_BODY() 273 ATF_REQUIRE_EQ_MSG(-1, rv, in ATF_TC_BODY() 275 ATF_REQUIRE_EQ_MSG(EINVAL, errno, in ATF_TC_BODY() 302 ATF_REQUIRE_EQ_MSG(0, rv, in ATF_TC_BODY() 304 ATF_REQUIRE_EQ_MSG(SIGUSR1, sig, in ATF_TC_BODY() [all …]
|
/freebsd/tests/sys/sys/ |
H A D | bitstring_test.c | 337 ATF_REQUIRE_EQ_MSG(start, found, in BITSTRING_TC_DEFINE() 351 ATF_REQUIRE_EQ_MSG(-1, found, in BITSTRING_TC_DEFINE() 371 ATF_REQUIRE_EQ_MSG(-1, found, in BITSTRING_TC_DEFINE() 385 ATF_REQUIRE_EQ_MSG(start, found, in BITSTRING_TC_DEFINE() 406 ATF_REQUIRE_EQ_MSG(-1, location, in ATF_TC_BODY() 408 ATF_REQUIRE_EQ_MSG(0, bit_ntest(bitstr, 5, 7, 1), in ATF_TC_BODY() 415 ATF_REQUIRE_EQ_MSG(5, location, in ATF_TC_BODY() 417 ATF_REQUIRE_EQ_MSG(1, bit_ntest(bitstr, 5, 7, 1), in ATF_TC_BODY() 424 ATF_REQUIRE_EQ_MSG(5, location, in ATF_TC_BODY() 429 ATF_REQUIRE_EQ_MSG(5, location, in ATF_TC_BODY() [all …]
|
/freebsd/lib/libproc/tests/ |
H A D | proc_test.c | 66 ATF_REQUIRE_EQ_MSG(error, 0, "failed to run '%s'", target_prog_file); in start_prog() 81 ATF_REQUIRE_EQ_MSG(error, 0, "failed to set breakpoint at 0x%jx", in set_bkpt() 91 ATF_REQUIRE_EQ_MSG(error, 0, in remove_bkpt() 95 ATF_REQUIRE_EQ_MSG(error, 0, "failed to reset program counter"); in remove_bkpt() 113 ATF_REQUIRE_EQ_MSG(state, PS_STOP, "process has state %d", state); in verify_bkpt() 117 ATF_REQUIRE_EQ_MSG(error, 0, "failed to obtain PC for '%s'", in verify_bkpt() 139 ATF_REQUIRE_EQ_MSG(error, 0, "failed to look up symbol at 0x%lx", addr); in verify_bkpt() 149 ATF_REQUIRE_EQ_MSG(strcmp(mapname, mapbname), 0, in verify_bkpt() 240 ATF_REQUIRE_EQ_MSG(error, 0, "failed to look up 'main' via %s", in ATF_TC_BODY() 243 ATF_REQUIRE_EQ_MSG(error, 0, "failed to look up 'main' via %s", in ATF_TC_BODY() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libc/ttyio/ |
H A D | t_ptm.c | 95 ATF_REQUIRE_EQ_MSG(sts.st_uid, getuid(), "bad slave uid"); in ATF_TC_BODY() 99 ATF_REQUIRE_EQ_MSG(sts.st_gid, gp->gr_gid, "bad slave grid"); in ATF_TC_BODY() 144 ATF_REQUIRE_EQ_MSG(major(stm.st_rdev), major(sts.st_rdev), in ATF_TC_BODY() 156 ATF_REQUIRE_EQ_MSG(minor(stm.st_rdev), minor(sts.st_rdev), in ATF_TC_BODY() 160 ATF_REQUIRE_EQ_MSG(sts.st_uid, getuid(), "bad slave uid"); in ATF_TC_BODY() 164 ATF_REQUIRE_EQ_MSG(sts.st_gid, gp->gr_gid, "bad slave gid"); in ATF_TC_BODY()
|
/freebsd/lib/libc/tests/sys/ |
H A D | queue_test.c | 75 ATF_REQUIRE_EQ_MSG(np->i, j, in ATF_TC_BODY() 98 ATF_REQUIRE_EQ_MSG(np->i, j, in ATF_TC_BODY() 118 ATF_REQUIRE_EQ_MSG(np->i, j, in ATF_TC_BODY() 132 ATF_REQUIRE_EQ_MSG(np->i, j, in ATF_TC_BODY() 181 ATF_REQUIRE_EQ_MSG(np->i, j, in ATF_TC_BODY() 204 ATF_REQUIRE_EQ_MSG(np->i, j, in ATF_TC_BODY() 218 ATF_REQUIRE_EQ_MSG(np->i, j, in ATF_TC_BODY()
|
H A D | sendfile_test.c | 64 ATF_REQUIRE_EQ_MSG(sysctlbyname(oidname, &int_value, &oldlen, NULL, 0), in get_int_via_sysctlbyname() 66 ATF_REQUIRE_EQ_MSG(sizeof(int_value), oldlen, "sanity check failed"); in get_int_via_sysctlbyname() 124 ATF_REQUIRE_EQ_MSG(error, 0, in resolve_localhost() 152 ATF_REQUIRE_EQ_MSG(error, 0, in setup_client() 163 ATF_REQUIRE_EQ_MSG(error, 0, "connect failed: %s", strerror(errno)); in setup_client() 185 ATF_REQUIRE_EQ_MSG(error, 0, in setup_server() 195 ATF_REQUIRE_EQ_MSG(error, 0, "bind failed: %s", strerror(errno)); in setup_server() 197 ATF_REQUIRE_EQ_MSG(error, 0, "listen failed: %s", strerror(errno)); in setup_server() 269 ATF_REQUIRE_EQ_MSG(0, fstat(fd, &st), in file_size_from_fd() 303 ATF_REQUIRE_EQ_MSG(dest_file_size, length, in verify_source_and_dest() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libc/rpc/ |
H A D | t_xdr.c | 98 ATF_REQUIRE_EQ_MSG(d, 1.0, "double 1.0 decoded as %g", d); in ATF_TC_BODY() 101 ATF_REQUIRE_EQ_MSG(s, SE_ONE, "SE_ONE decoded as %d", s); in ATF_TC_BODY() 104 ATF_REQUIRE_EQ_MSG(m, ME_NEG, "ME_NEG decoded as %d", m); in ATF_TC_BODY() 107 ATF_REQUIRE_EQ_MSG(b, BE_LOTS, "BE_LOTS decoded as %d", b); in ATF_TC_BODY()
|
/freebsd/contrib/netbsd-tests/lib/libutil/ |
H A D | t_sockaddr_snprintf.c | 68 ATF_REQUIRE_EQ_MSG(i, 17, "bad length for sin4"); in ATF_TC_BODY() 93 ATF_REQUIRE_EQ_MSG(i, 16, "bad length for sin6"); in ATF_TC_BODY() 119 ATF_REQUIRE_EQ_MSG(i, 15, "bad length for sun"); in ATF_TC_BODY() 143 ATF_REQUIRE_EQ_MSG(i, 11, "bad length for sat"); in ATF_TC_BODY() 171 ATF_REQUIRE_EQ_MSG(i, 17, "bad length for sdl"); in ATF_TC_BODY()
|
/freebsd/contrib/netbsd-tests/lib/libc/locale/ |
H A D | t_mbrtowc.c | 197 ATF_REQUIRE_EQ_MSG(dst, 0, "Incorrect terminating character: " in h_ctype2() 200 ATF_REQUIRE_EQ_MSG(nchar, t->length, "Incorrect length: " in h_ctype2() 214 ATF_REQUIRE_EQ_MSG(rv, t->length, "Incorrect length: %zd " in h_ctype2() 228 ATF_REQUIRE_EQ_MSG((size_t)i, t->length, "Incorrect length: " in h_ctype2()
|
/freebsd/contrib/netbsd-tests/lib/libpthread/ |
H A D | t_rwlock.c | 100 ATF_REQUIRE_EQ_MSG(clock_gettime(CLOCK_REALTIME, &to), 0, in ATF_TC_BODY() 109 ATF_REQUIRE_EQ_MSG(clock_gettime(CLOCK_REALTIME, &to), 0, in ATF_TC_BODY() 114 ATF_REQUIRE_EQ_MSG(clock_gettime(CLOCK_REALTIME, &to), 0, in ATF_TC_BODY()
|
H A D | t_mutex.c | 247 ATF_REQUIRE_EQ_MSG(count, -1, "%d", count); in ATF_TC_BODY() 248 ATF_REQUIRE_EQ_MSG((long)joinval, -1, "%ld", (long)joinval); in ATF_TC_BODY() 249 ATF_REQUIRE_EQ_MSG(global_x, num_increments * 2, "%d vs %d", global_x, in ATF_TC_BODY() 361 ATF_REQUIRE_EQ_MSG(count, -1, "%d", count); in ATF_TC_BODY() 362 ATF_REQUIRE_EQ_MSG((long)joinval, -1, "%ld", (long)joinval); in ATF_TC_BODY() 363 ATF_REQUIRE_EQ_MSG(global_x, num_increments * 2, "%d vs %d", global_x, in ATF_TC_BODY() 459 ATF_REQUIRE_EQ_MSG(res, -1, "sched_protect returned %d", res); in child_func() 494 ATF_REQUIRE_EQ_MSG(res, SCHED_FIFO, "sched %d != FIFO %d", res, in ATF_TC_BODY()
|
H A D | t_sigalarm.c | 49 ATF_REQUIRE_EQ_MSG(si->si_signo, signo, "Received unexpected signal"); in alarm_handler() 56 ATF_REQUIRE_EQ_MSG(SIGALRM, signo, "Received unexpected signal"); in alarm_handler()
|
H A D | t_siglongjmp.c | 99 ATF_REQUIRE_EQ_MSG(sigismember(&nset, SIGSEGV), 0, "SIGSEGV set"); in ATF_TC_BODY() 100 ATF_REQUIRE_EQ_MSG(sigismember(&nset, SIGUSR2), 0, "SIGUSR2 set"); in ATF_TC_BODY()
|
/freebsd/contrib/netbsd-tests/kernel/ |
H A D | t_extent.c | 54 ATF_REQUIRE_EQ_MSG(ret = extent_alloc_region(ex, \ 58 ATF_REQUIRE_EQ_MSG(ret = extent_free(ex, \ 93 ATF_REQUIRE_EQ_MSG(ex->ex_start, start, in h_require() 95 ATF_REQUIRE_EQ_MSG(ex->ex_end, end, in h_require() 97 ATF_REQUIRE_EQ_MSG(ex->ex_flags, flags, in h_require()
|
H A D | t_ptrace_wait.h | 133 ATF_REQUIRE_EQ_MSG(vx, vy, "%s(%ju) == %s(%ju)", \ 231 ATF_REQUIRE_EQ_MSG(WEXITSTATUS(status), expected, in validate_status_exited() 273 ATF_REQUIRE_EQ_MSG(WTERMSIG(status), expected_termsig, in validate_status_signaled() 276 ATF_REQUIRE_EQ_MSG(WCOREDUMP(status), expected_core, in validate_status_signaled() 304 ATF_REQUIRE_EQ_MSG(WSTOPSIG(status), expected, in validate_status_stopped()
|
H A D | t_sysv.c | 284 ATF_REQUIRE_EQ_MSG(wait_result, child_pid, "wait returned %d (%s)", in ATF_TC_BODY() 288 ATF_REQUIRE_EQ_MSG(WEXITSTATUS(c_status), 0, "child status: %d", in ATF_TC_BODY() 503 ATF_REQUIRE_EQ_MSG(WEXITSTATUS(c_status), 0, "child status: %d", in ATF_TC_BODY() 681 ATF_REQUIRE_EQ_MSG(wait_result, child_pid, "wait returned %d (%s)", in ATF_TC_BODY() 685 ATF_REQUIRE_EQ_MSG(WEXITSTATUS(c_status), 0, "child status: %d", in ATF_TC_BODY()
|
/freebsd/lib/msun/tests/ |
H A D | conj_test.c | 95 ATF_REQUIRE_EQ_MSG(0, fetestexcept(FE_ALL_EXCEPT), in ATF_TC_BODY() 102 ATF_REQUIRE_EQ_MSG(0, fetestexcept(FE_ALL_EXCEPT), in ATF_TC_BODY() 109 ATF_REQUIRE_EQ_MSG(0, fetestexcept(FE_ALL_EXCEPT), in ATF_TC_BODY()
|
/freebsd/contrib/netbsd-tests/lib/libpthread_dbg/ |
H A D | t_threads.c | 166 ATF_REQUIRE_EQ_MSG(count, MAX_THREADS + 1, in ATF_TC_BODY() 236 ATF_REQUIRE_EQ_MSG(count, MAX_THREADS + 1, in ATF_TC_BODY() 313 ATF_REQUIRE_EQ_MSG(count, MAX_THREADS + 1, in ATF_TC_BODY() 394 ATF_REQUIRE_EQ_MSG(count, MAX_THREADS + 1, in ATF_TC_BODY() 468 ATF_REQUIRE_EQ_MSG(count, MAX_THREADS + 1, in ATF_TC_BODY() 542 ATF_REQUIRE_EQ_MSG(count, MAX_THREADS + 1, in ATF_TC_BODY() 623 ATF_REQUIRE_EQ_MSG(count, MAX_THREADS + 1, in ATF_TC_BODY() 700 ATF_REQUIRE_EQ_MSG(count, MAX_THREADS + 1, in ATF_TC_BODY()
|
/freebsd/tests/sys/opencrypto/ |
H A D | poly1305_test.c | 263 ATF_REQUIRE_EQ_MSG(sym_len, 2, in parse_hex() 269 ATF_REQUIRE_EQ_MSG(res, 1, in parse_hex() 286 ATF_REQUIRE_EQ_MSG(count, explen, "got short value at %s", in parse_hex()
|
/freebsd/tests/sys/sound/ |
H A D | sndstat.c | 76 ATF_REQUIRE_EQ_MSG(rc, 0, "ioctl(SNDSTIOC_GET_DEVS#1) failed"); in ATF_TC_BODY() 82 ATF_REQUIRE_EQ_MSG(rc, 0, "ioctl(SNDSTIOC_GET_DEVS#2) failed"); in ATF_TC_BODY() 273 ATF_REQUIRE_EQ_MSG(rc, 0, "ioctl(SNDSTIOC_ADD_USER_DEVS) failed"); in ATF_TC_BODY() 286 ATF_REQUIRE_EQ_MSG(rc, 0, "ioctl(SNDSTIOC_GET_DEVS#1) failed"); in ATF_TC_BODY() 292 ATF_REQUIRE_EQ_MSG(rc, 0, "ioctl(SNDSTIOC_GET_DEVS#2) failed"); in ATF_TC_BODY()
|
/freebsd/contrib/netbsd-tests/kernel/kqueue/write/ |
H A D | t_pipe.c | 67 ATF_REQUIRE_EQ_MSG((n = kevent(kq, event, 1, NULL, 0, NULL)), in ATF_TC_BODY() 69 ATF_REQUIRE_EQ_MSG(errno, EBADF, "got: %s", strerror(errno)); in ATF_TC_BODY()
|