Home
last modified time | relevance | path

Searched refs:ATF_REQUIRE_MSG (Results 1 – 25 of 165) sorted by relevance

1234567

/freebsd/contrib/netbsd-tests/kernel/
H A Dt_mqueue.c34 ATF_REQUIRE_MSG(mq_send(mqfd, msg, sizeof(msg), MQ_PRIO_BASE) != -1, in send_msgs()
38 ATF_REQUIRE_MSG(mq_send(mqfd, msg, sizeof(msg), MQ_PRIO_BASE + 1) != -1, in send_msgs()
42 ATF_REQUIRE_MSG(mq_send(mqfd, msg, sizeof(msg), MQ_PRIO_BASE) != -1, in send_msgs()
46 ATF_REQUIRE_MSG(mq_send(mqfd, msg, sizeof(msg), MQ_PRIO_BASE - 1) != -1, in send_msgs()
50 ATF_REQUIRE_MSG(mq_send(mqfd, msg, sizeof(msg), 0) != -1, in send_msgs()
54 ATF_REQUIRE_MSG(mq_send(mqfd, msg, sizeof(msg), MQ_PRIO_BASE + 1) != -1, in send_msgs()
66 ATF_REQUIRE_MSG(mq_getattr(mqfd, &mqa) != -1, "mq_getattr failed %d", in receive_msgs()
71 ATF_REQUIRE_MSG(m != NULL, "calloc failed"); in receive_msgs()
73 ATF_REQUIRE_MSG(mq_receive(mqfd, m, len, &p) != -1, in receive_msgs()
75 ATF_REQUIRE_MSG(p == (MQ_PRIO_BASE + 1) && m[0] == 'b', in receive_msgs()
[all …]
H A Dt_sysv.c111 ATF_REQUIRE_MSG(output != -1, "Failed to create %s", path); in write_int()
152 ATF_REQUIRE_MSG(tmpdir != NULL, "mkdtemp() failed: %d", errno); in get_ftok()
170 ATF_REQUIRE_MSG(unlink(token_key) != -1, "unlink() failed: %d", errno); in get_ftok()
171 ATF_REQUIRE_MSG(rmdir(token_dir) != -1, "rmdir() failed: %d", errno); in get_ftok()
202 ATF_REQUIRE_MSG(sigaction(SIGSYS, &sa, NULL) != -1, in ATF_TC_BODY()
206 ATF_REQUIRE_MSG(msgkey != (key_t)-1, "get_ftok failed"); in ATF_TC_BODY()
209 ATF_REQUIRE_MSG(sender_msqid != -1, "msgget: %d", errno); in ATF_TC_BODY()
217 ATF_REQUIRE_MSG(msgctl(sender_msqid, IPC_STAT, &m_ds) != -1, in ATF_TC_BODY()
224 ATF_REQUIRE_MSG(msgctl(sender_msqid, IPC_SET, &m_ds) != -1, in ATF_TC_BODY()
229 ATF_REQUIRE_MSG(msgctl(sender_msqid, IPC_STAT, &m_ds) != -1, in ATF_TC_BODY()
[all …]
H A Dt_lockf.c134 ATF_REQUIRE_MSG(fd >= 0, "open(%s): %s", lockfile, strerror(errno)); in ATF_TC_BODY()
136 ATF_REQUIRE_MSG(ftruncate(fd, filesize) >= 0, in ATF_TC_BODY()
139 ATF_REQUIRE_MSG(pipe(pipe_fd) == 0, "pipe: %s", strerror(errno)); in ATF_TC_BODY()
162 ATF_REQUIRE_MSG(read(pipe_fd[0], &pipe_in, 1) == 1, in ATF_TC_BODY()
164 ATF_REQUIRE_MSG(pipe_in == pipe_out, in ATF_TC_BODY()
172 ATF_REQUIRE_MSG(ptrace(PT_ATTACH, pid[i], 0, 0) >= 0, in ATF_TC_BODY()
174 ATF_REQUIRE_MSG(waitpid(pid[i], &status, WUNTRACED) >= 0, in ATF_TC_BODY()
177 ATF_REQUIRE_MSG(ptrace(PT_DETACH, pid[i], (caddr_t)1, in ATF_TC_BODY()
203 ATF_REQUIRE_MSG(result == lk_off, "lseek to wrong offset"); in dolock()
229 ATF_REQUIRE_MSG(fd >= 0, "open(%s): %s", lockfile, strerror(errno)); in ATF_TC_BODY()
[all …]
/freebsd/tests/sys/file/
H A Dpath_test.c64 ATF_REQUIRE_MSG(close(fd) == 0, FMT_ERR("close"))
75 ATF_REQUIRE_MSG(fd >= 0, FMT_ERR("mkstemp")); in mktfile()
77 ATF_REQUIRE_MSG(write(fd, buf, sizeof(buf)) == sizeof(buf), in mktfile()
87 ATF_REQUIRE_MSG(mkdtemp(path) == path, FMT_ERR("mkdtemp")); in mktdir()
97 ATF_REQUIRE_MSG(error != -1, FMT_ERR("waitpid")); in waitchild()
98 ATF_REQUIRE_MSG(WIFEXITED(status), "child exited abnormally, status %d", in waitchild()
100 ATF_REQUIRE_MSG(WEXITSTATUS(status) == exstatus, in waitchild()
117 ATF_REQUIRE_MSG(pathfd >= 0, FMT_ERR("open")); in ATF_TC_BODY()
128 ATF_REQUIRE_MSG(fstat(pathfd, &sb) == 0, FMT_ERR("fstat")); in ATF_TC_BODY()
129 ATF_REQUIRE_MSG(fpathconf(pathfd, _PC_LINK_MAX) != -1, in ATF_TC_BODY()
[all …]
/freebsd/tests/sys/kern/
H A Dsocket_splice.c33 ATF_REQUIRE_MSG(error == 0, "close failed: %s", strerror(errno)); in checked_close()
43 ATF_REQUIRE_MSG(error == 0, "ioctl failed: %s", strerror(errno)); in fionread()
54 ATF_REQUIRE_MSG(flags != -1, "fcntl failed: %s", strerror(errno)); in noblocking()
57 ATF_REQUIRE_MSG(error == 0, "fcntl failed: %s", strerror(errno)); in noblocking()
72 ATF_REQUIRE_MSG(sd[0] >= 0, "socket failed: %s", strerror(errno)); in tcp_socketpair()
74 ATF_REQUIRE_MSG(sd[1] >= 0, "socket failed: %s", strerror(errno)); in tcp_socketpair()
78 ATF_REQUIRE_MSG(error == 0, "setsockopt failed: %s", strerror(errno)); in tcp_socketpair()
81 ATF_REQUIRE_MSG(error == 0, "setsockopt failed: %s", strerror(errno)); in tcp_socketpair()
101 ATF_REQUIRE_MSG(error == 0, "bind failed: %s", strerror(errno)); in tcp_socketpair()
103 ATF_REQUIRE_MSG(error == 0, "listen failed: %s", strerror(errno)); in tcp_socketpair()
[all …]
H A Dunix_passfd_test.c64 ATF_REQUIRE_MSG(socketpair(PF_UNIX, TEST_PROTO, 0, fdp) != -1, in domainsocketpair()
82 ATF_REQUIRE_MSG(fd != -1, "open failed: %s", strerror(errno)); in devnull()
95 ATF_REQUIRE_MSG(fd != -1, "mkstemp(%s) failed", path); in tempfile()
104 ATF_REQUIRE_MSG(fstat(fd, sb) == 0, in dofstat()
121 ATF_REQUIRE_MSG(rc != -1, "sysctl(KERN_PROC_NFDS) failed"); in getnfds()
154 ATF_REQUIRE_MSG(sb1->st_dev == sb2->st_dev, "different device"); in samefile()
155 ATF_REQUIRE_MSG(sb1->st_ino == sb2->st_ino, "different inode"); in samefile()
189 ATF_REQUIRE_MSG(len == sizeof(ch), in sendfd()
202 ATF_REQUIRE_MSG(rc != -1, "getsockopt(LOCAL_CREDS) failed: %s", in localcreds()
232 ATF_REQUIRE_MSG(len != -1, "recvmsg failed: %s", strerror(errno)); in recvfd_payload()
[all …]
H A Dsocket_msg_waitall.c46 ATF_REQUIRE_MSG(s >= 0, "socket: %s", strerror(errno)); in close_test_client()
49 ATF_REQUIRE_MSG(error == 0, "connect: %s", strerror(errno)); in close_test_client()
52 ATF_REQUIRE_MSG(n == (ssize_t)p->msglen, in close_test_client()
72 ATF_REQUIRE_MSG(s >= 0, "socket %s", strerror(errno)); in close_test()
74 ATF_REQUIRE_MSG(bind(s, sa, sa->sa_len) == 0, in close_test()
76 ATF_REQUIRE_MSG(listen(s, 1) == 0, in close_test()
78 ATF_REQUIRE_MSG(getsockname(s, sa, &(socklen_t){ sa->sa_len }) == 0, in close_test()
92 ATF_REQUIRE_MSG(error == 0, "pthread_create: %s", strerror(error)); in close_test()
99 ATF_REQUIRE_MSG(cs >= 0, "accept: %s", strerror(errno)); in close_test()
102 ATF_REQUIRE_MSG(n == (ssize_t)msglen, in close_test()
[all …]
/freebsd/tests/sys/posixshm/
H A Dposixshm_test.c66 ATF_REQUIRE_MSG(mkstemp(path) != -1, in gen_a_test_path()
68 ATF_REQUIRE_MSG(unlink(path) == 0, in gen_a_test_path()
140 ATF_REQUIRE_MSG(munmap(page, pagesize) == 0, "munmap failed; errno=%d", in scribble_object()
173 ATF_REQUIRE_MSG(munmap(page, pagesize) == 0, "munmap failed; errno=%d", in verify_object()
320 ATF_REQUIRE_MSG(munmap(page, pagesize) == 0, "munmap failed; errno=%d", in ATF_TC_BODY()
323 ATF_REQUIRE_MSG(shm_unlink(test_path) != -1, in ATF_TC_BODY()
402 ATF_REQUIRE_MSG(shm_rename(test_path, test_path2, 0) == 0, in ATF_TC_BODY()
431 ATF_REQUIRE_MSG((rc == -1) && (errno == EEXIST), in ATF_TC_BODY()
459 ATF_REQUIRE_MSG(shm_rename(test_path, test_path2, in ATF_TC_BODY()
482 ATF_REQUIRE_MSG(shm_rename(test_path, test_path2, in ATF_TC_BODY()
[all …]
/freebsd/lib/libsbuf/tests/
H A Dsbuf_string_test.c63 ATF_REQUIRE_MSG(test_buffer_tmp != NULL, "malloc failed"); in ATF_TC_BODY()
70 ATF_REQUIRE_MSG(sb != NULL, "sbuf_new_auto failed: %s", in ATF_TC_BODY()
77 ATF_REQUIRE_MSG(test_sbuf_len == (ssize_t)sizeof(test_buffer), in ATF_TC_BODY()
85 ATF_REQUIRE_MSG(test_sbuf_len == (ssize_t)(2 * sizeof(test_buffer)), in ATF_TC_BODY()
89 ATF_REQUIRE_MSG(sbuf_finish(sb) == 0, "sbuf_finish failed: %s", in ATF_TC_BODY()
107 ATF_REQUIRE_MSG(sb != NULL, "sbuf_new_auto failed: %s", in ATF_TC_BODY()
114 ATF_REQUIRE_MSG(test_sbuf_len == (ssize_t)sizeof(test_buffer), in ATF_TC_BODY()
122 ATF_REQUIRE_MSG(test_sbuf_len == (ssize_t)sizeof(test_buffer), in ATF_TC_BODY()
126 ATF_REQUIRE_MSG(sbuf_finish(sb) == 0, "sbuf_finish failed: %s", in ATF_TC_BODY()
142 ATF_REQUIRE_MSG(test_string_tmp != NULL, "asprintf failed"); in ATF_TC_BODY()
[all …]
H A Dsbuf_stdio_test.c67 ATF_REQUIRE_MSG(sb != NULL, "sbuf_new_auto failed: %s", in ATF_TC_BODY()
94 ATF_REQUIRE_MSG(sb != NULL, "sbuf_new_auto failed: %s", in ATF_TC_BODY()
121 ATF_REQUIRE_MSG(test_string_tmp != NULL, "asprintf failed"); in ATF_TC_BODY()
124 ATF_REQUIRE_MSG(sb != NULL, "sbuf_new_auto failed: %s", in ATF_TC_BODY()
127 ATF_REQUIRE_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed"); in ATF_TC_BODY()
128 ATF_REQUIRE_MSG(sbuf_putc(sb, MESSAGE_SEPARATOR) == 0, in ATF_TC_BODY()
131 ATF_REQUIRE_MSG(sbuf_printf(sb, MESSAGE_FORMAT, test_string) == 0, in ATF_TC_BODY()
134 ATF_REQUIRE_MSG(sbuf_finish(sb) == 0, "sbuf_finish failed: %s", in ATF_TC_BODY()
153 ATF_REQUIRE_MSG(sb != NULL, "sbuf_new_auto failed: %s", in ATF_TC_BODY()
156 ATF_REQUIRE_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed"); in ATF_TC_BODY()
[all …]
H A Dsbuf_core_test.c52 ATF_REQUIRE_MSG(sb != NULL, "sbuf_new_auto failed: %s", in ATF_TC_BODY()
55 ATF_REQUIRE_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed"); in ATF_TC_BODY()
73 ATF_REQUIRE_MSG(sbuf_finish(sb) == 0, "sbuf_finish failed: %s", in ATF_TC_BODY()
77 ATF_REQUIRE_MSG(buf_len == 0, "sbuf_len (%zd) != 0", buf_len); in ATF_TC_BODY()
90 ATF_REQUIRE_MSG(sb != NULL, "sbuf_new_auto failed: %s", in ATF_TC_BODY()
95 ATF_REQUIRE_MSG(sbuf_finish(sb) == 0, "sbuf_finish failed: %s", in ATF_TC_BODY()
139 ATF_REQUIRE_MSG(sb != NULL, "sbuf_new_auto failed: %s", in ATF_TC_BODY()
145 ATF_REQUIRE_MSG(buf_len == (ssize_t)(i * test_string_len), in ATF_TC_BODY()
147 ATF_REQUIRE_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed"); in ATF_TC_BODY()
152 ATF_REQUIRE_MSG((ssize_t)(i * test_string_len + 1) == sbuf_len(sb), in ATF_TC_BODY()
[all …]
/freebsd/tests/sys/netinet/
H A Dso_reuseport_lb_test.c62 ATF_REQUIRE_MSG(acceptcnt != NULL, "calloc() failed: %s", in lb_simple_accept_loop()
67 ATF_REQUIRE_MSG(sd >= 0, "socket() failed: %s", in lb_simple_accept_loop()
71 ATF_REQUIRE_MSG(error == 0, "connect() failed: %s", in lb_simple_accept_loop()
75 ATF_REQUIRE_MSG(error == 0, "Setting linger failed: %s", in lb_simple_accept_loop()
85 ATF_REQUIRE_MSG(errno == EWOULDBLOCK || in lb_simple_accept_loop()
93 ATF_REQUIRE_MSG(error == 0, in lb_simple_accept_loop()
102 ATF_REQUIRE_MSG(error == 0, "close() failed: %s", in lb_simple_accept_loop()
107 ATF_REQUIRE_MSG(acceptcnt[i] > excnt, "uneven balancing"); in lb_simple_accept_loop()
117 ATF_REQUIRE_MSG(sd >= 0, "socket() failed: %s", strerror(errno)); in lb_listen_socket()
121 ATF_REQUIRE_MSG(error == 0, "setsockopt(SO_REUSEPORT_LB) failed: %s", in lb_listen_socket()
[all …]
H A Dip6_v4mapped_test.c233 ATF_REQUIRE_MSG(lsock >= 0, "socket() for listen socket failed: %s", in ATF_TC_BODY()
239 ATF_REQUIRE_MSG(error == 0, "bind() failed: %s", strerror(errno)); in ATF_TC_BODY()
241 ATF_REQUIRE_MSG(error == 0, "listen() failed: %s", strerror(errno)); in ATF_TC_BODY()
246 ATF_REQUIRE_MSG(error == 0, in ATF_TC_BODY()
249 ATF_REQUIRE_MSG(salen == sizeof(struct sockaddr_in), in ATF_TC_BODY()
251 ATF_REQUIRE_MSG(su_srvr.saddr.sa_len == sizeof(struct sockaddr_in), in ATF_TC_BODY()
259 ATF_REQUIRE_MSG(error == 0, "getaddrinfo: %s", gai_strerror(error)); in ATF_TC_BODY()
271 ATF_REQUIRE_MSG(csock >= 0, in ATF_TC_BODY()
276 ATF_REQUIRE_MSG(error == 0, in ATF_TC_BODY()
289 ATF_REQUIRE_MSG(error == 0, in ATF_TC_BODY()
[all …]
H A Dtcp_connect_port_test.c181 ATF_REQUIRE_MSG(lsock >= 0, "socket() for listen socket failed: %s", in connect_loop()
184 ATF_REQUIRE_MSG(error == 0, "bind() failed: %s", strerror(errno)); in connect_loop()
186 ATF_REQUIRE_MSG(error == 0, "listen() failed: %s", strerror(errno)); in connect_loop()
194 ATF_REQUIRE_MSG(error == 0, in connect_loop()
197 ATF_REQUIRE_MSG(salen == (domain == PF_INET ? in connect_loop()
200 ATF_REQUIRE_MSG(su_srvr.saddr.sa_len == (domain == PF_INET ? in connect_loop()
207 ATF_REQUIRE_MSG(csock >= 0, in connect_loop()
212 ATF_REQUIRE_MSG(error == 0, in connect_loop()
218 ATF_REQUIRE_MSG(error == 0, in connect_loop()
225 ATF_REQUIRE_MSG(error == 0, in connect_loop()
[all …]
/freebsd/lib/libc/tests/net/
H A Dether_test.c49 ATF_REQUIRE_MSG(ether_line(ether_line_string, &e, hostname) == 0, in ATF_TC_BODY()
51 ATF_REQUIRE_MSG(bcmp(&e, &ether_line_addr, ETHER_ADDR_LEN) == 0, in ATF_TC_BODY()
53 ATF_REQUIRE_MSG(strcmp(hostname, ether_line_hostname) == 0, in ATF_TC_BODY()
65 ATF_REQUIRE_MSG(ether_line(ether_line_bad_1_string, &e, hostname) != 0, in ATF_TC_BODY()
77 ATF_REQUIRE_MSG(ether_line(ether_line_bad_2_string, &e, hostname) != 0, in ATF_TC_BODY()
93 ATF_REQUIRE_MSG(ep != NULL, "ether_aton_r failed; errno=%d", errno); in ATF_TC_BODY()
94 ATF_REQUIRE_MSG(ep == &e, in ATF_TC_BODY()
106 ATF_REQUIRE_MSG(ep == NULL, "ether_aton_r succeeded unexpectedly"); in ATF_TC_BODY()
115 ATF_REQUIRE_MSG(ep != NULL, "ether_aton failed"); in ATF_TC_BODY()
116 ATF_REQUIRE_MSG(bcmp(ep, &ether_aton_addr, ETHER_ADDR_LEN) == 0, in ATF_TC_BODY()
[all …]
/freebsd/tests/sys/sys/
H A Dbitset_test.c32 ATF_REQUIRE_MSG(prev < i, "incorrect bit ordering"); \ in ATF_TC_BODY()
33 ATF_REQUIRE_MSG(BIT_ISSET((s), i, (bs)), \ in ATF_TC_BODY()
40 ATF_REQUIRE_MSG(prev < i, "incorrect bit ordering"); \ in ATF_TC_BODY()
41 ATF_REQUIRE_MSG(!BIT_ISSET((s), i, (bs)), \ in ATF_TC_BODY()
55 ATF_REQUIRE_MSG(setc == 256, "incorrect set count %d", setc); in ATF_TC_BODY()
56 ATF_REQUIRE_MSG(clrc == 0, "incorrect clear count %d", clrc); in ATF_TC_BODY()
60 ATF_REQUIRE_MSG(setc == 0, "incorrect set count %d", setc); in ATF_TC_BODY()
61 ATF_REQUIRE_MSG(clrc == 256, "incorrect clear count %d", clrc); in ATF_TC_BODY()
68 ATF_REQUIRE_MSG(setc + clrc == 256, "incorrect counts %d, %d", in ATF_TC_BODY()
80 ATF_REQUIRE_MSG(setc == 0, "incorrect set count %d", setc); in ATF_TC_BODY()
[all …]
H A Dbitstring_test.c126 ATF_REQUIRE_MSG(bit_test(bitstr, j) == (j == i) ? 1 : 0, in BITSTRING_TC_DEFINE()
145 ATF_REQUIRE_MSG(bit_test(bitstr, j) == (j == i) ? 0 : 1, in BITSTRING_TC_DEFINE()
162 ATF_REQUIRE_MSG(found_set_bit == -1, in BITSTRING_TC_DEFINE()
171 ATF_REQUIRE_MSG(found_set_bit == i, in BITSTRING_TC_DEFINE()
185 ATF_REQUIRE_MSG(found_clear_bit == -1, in BITSTRING_TC_DEFINE()
194 ATF_REQUIRE_MSG(found_clear_bit == i, in BITSTRING_TC_DEFINE()
209 ATF_REQUIRE_MSG(found_set_bit == i, in BITSTRING_TC_DEFINE()
217 ATF_REQUIRE_MSG(found_set_bit == -1, in BITSTRING_TC_DEFINE()
226 ATF_REQUIRE_MSG(found_set_bit == -1, in BITSTRING_TC_DEFINE()
230 ATF_REQUIRE_MSG(found_set_bit == i + (i & 1), in BITSTRING_TC_DEFINE()
[all …]
/freebsd/tests/sys/vm/
H A Dmlock_test.c67 ATF_REQUIRE_MSG(!WIFEXITED(status), in test_wired_copy_on_write()
79 ATF_REQUIRE_MSG(WEXITSTATUS(status) == 0, in test_wired_copy_on_write()
190 ATF_REQUIRE_MSG(count >= 1, in ATF_TC_BODY()
197 ATF_REQUIRE_MSG(error == 0, "getrlimit: %s", strerror(errno)); in ATF_TC_BODY()
201 ATF_REQUIRE_MSG(error == 0, "setrlimit: %s", strerror(errno)); in ATF_TC_BODY()
204 ATF_REQUIRE_MSG(shmfd >= 0, "shm_open: %s", strerror(errno)); in ATF_TC_BODY()
206 ATF_REQUIRE_MSG(error == 0, "ftruncate: %s", strerror(errno)); in ATF_TC_BODY()
210 ATF_REQUIRE_MSG(addr1 != MAP_FAILED, "mmap: %s", strerror(errno)); in ATF_TC_BODY()
211 ATF_REQUIRE_MSG(((uintptr_t)addr1 & (len - 1)) == 0, in ATF_TC_BODY()
215 ATF_REQUIRE_MSG(addr2 != MAP_FAILED, "mmap: %s", strerror(errno)); in ATF_TC_BODY()
[all …]
/freebsd/lib/libc/tests/sys/
H A Dbrk_test.c50 ATF_REQUIRE_MSG(error == 0, "brk: %s", strerror(errno)); in ATF_TC_BODY()
57 ATF_REQUIRE_MSG(error == 0, "brk: %s", strerror(errno)); in ATF_TC_BODY()
63 ATF_REQUIRE_MSG(error == 0, "brk: %s", strerror(errno)); in ATF_TC_BODY()
65 ATF_REQUIRE_MSG(newbrk != (void *)-1, "sbrk: %s", strerror(errno)); in ATF_TC_BODY()
80 ATF_REQUIRE_MSG(oldbrk != (void *)-1, "sbrk: %s", strerror(errno)); in ATF_TC_BODY()
86 ATF_REQUIRE_MSG(newbrk != (void *)-1, "sbrk: %s", strerror(errno)); in ATF_TC_BODY()
90 ATF_REQUIRE_MSG(oldbrk != (void *)-1, "sbrk: %s", strerror(errno)); in ATF_TC_BODY()
93 ATF_REQUIRE_MSG(newbrk != (void *)-1, "sbrk: %s", strerror(errno)); in ATF_TC_BODY()
110 ATF_REQUIRE_MSG(error == 0, in ATF_TC_BODY()
126 ATF_REQUIRE_MSG(error == 0, in ATF_TC_BODY()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/rpc/
H A Dt_xdr.c97 ATF_REQUIRE_MSG(xdr_double(&x, &d), "xdr_double DECODE failed"); in ATF_TC_BODY()
100 ATF_REQUIRE_MSG(xdr_smallenum(&x, &s), "xdr_smallenum DECODE failed"); in ATF_TC_BODY()
103 ATF_REQUIRE_MSG(xdr_medenum(&x, &m), "xdr_medenum DECODE failed"); in ATF_TC_BODY()
106 ATF_REQUIRE_MSG(xdr_bigenum(&x, &b), "xdr_bigenum DECODE failed"); in ATF_TC_BODY()
114 ATF_REQUIRE_MSG(xdr_double(&x, &d), "xdr_double ENCODE failed"); in ATF_TC_BODY()
115 ATF_REQUIRE_MSG(xdr_smallenum(&x, &s), "xdr_smallenum ENCODE failed"); in ATF_TC_BODY()
116 ATF_REQUIRE_MSG(xdr_medenum(&x, &m), "xdr_medenum ENCODE failed"); in ATF_TC_BODY()
117 ATF_REQUIRE_MSG(xdr_bigenum(&x, &b), "xdr_bigenum ENCODE failed"); in ATF_TC_BODY()
118 ATF_REQUIRE_MSG(memcmp(newdata, xdrdata, sizeof(xdrdata)) == 0, in ATF_TC_BODY()
/freebsd/lib/libc/tests/gen/
H A Dftw_test.c80 ATF_REQUIRE_MSG(mkdtemp(template) != NULL, "mkdtemp failed"); in ATF_TC_BODY()
83 ATF_REQUIRE_MSG(realpath(template, dir) != NULL, in ATF_TC_BODY()
87 ATF_REQUIRE_MSG(fd != -1, "open failed; errno=%d", errno); in ATF_TC_BODY()
89 ATF_REQUIRE_MSG(mkdirat(fd, "d1", 0777) == 0, in ATF_TC_BODY()
92 ATF_REQUIRE_MSG(symlinkat(dir, fd, "d1/looper") == 0, in ATF_TC_BODY()
97 ATF_REQUIRE_MSG(nftw(dir, cb, 10, ftwflags) != -1, in ATF_TC_BODY()
102 ATF_REQUIRE_MSG(nftw(dir, cb, 10, ftwflags) != -1, in ATF_TC_BODY()
107 ATF_REQUIRE_MSG(nftw(dir, cb, 10, ftwflags) != -1, in ATF_TC_BODY()
112 ATF_REQUIRE_MSG(nftw(dir, cb, 10, ftwflags) != -1, in ATF_TC_BODY()
H A Ddir2_test.c60 ATF_REQUIRE_MSG(tmpdir != NULL, "mkdtemp failed"); in ATF_TC_BODY()
80 ATF_REQUIRE_MSG(dirfd >= 0, "fdopendir failed"); in ATF_TC_BODY()
84 ATF_REQUIRE_MSG(de != NULL, "readdir failed"); in ATF_TC_BODY()
89 ATF_REQUIRE_MSG(de != NULL, "readdir failed"); in ATF_TC_BODY()
102 ATF_REQUIRE_MSG(NULL != readdir(dirp), "invalid directory index"); in ATF_TC_BODY()
107 ATF_REQUIRE_MSG(NULL != readdir(dirp), "invalid directory index"); in ATF_TC_BODY()
112 ATF_REQUIRE_MSG(NULL != readdir(dirp), "invalid directory index"); in ATF_TC_BODY()
137 ATF_REQUIRE_MSG(tmpdir != NULL, "mkdtemp failed"); in ATF_TC_BODY()
157 ATF_REQUIRE_MSG(dirfd >= 0, "fdopendir failed"); in ATF_TC_BODY()
159 ATF_REQUIRE_MSG(readdir(dirp) != NULL, "readdir failed"); in ATF_TC_BODY()
[all …]
/freebsd/lib/csu/tests/
H A Dinit_test.c78 ATF_REQUIRE_MSG(jcr_run == 1, ".jcr not run"); in ATF_TC_BODY()
79 ATF_REQUIRE_MSG(jcr_ptr == jcr_func_ptr, in ATF_TC_BODY()
101 ATF_REQUIRE_MSG(ctors_run == 1, ".ctors not run"); in ATF_TC_BODY()
103 ATF_REQUIRE_MSG(ctors_run == 0, ".ctors run"); in ATF_TC_BODY()
127 ATF_REQUIRE_MSG(preinit_array_run == 0, ".preinit_array run in DSO"); in ATF_TC_BODY()
129 ATF_REQUIRE_MSG(preinit_array_run == 1, ".preinit_array not run"); in ATF_TC_BODY()
130 ATF_REQUIRE_MSG(preinit_array_state == 0, in ATF_TC_BODY()
153 ATF_REQUIRE_MSG(init_array_run == 1, ".init_array not run"); in ATF_TC_BODY()
155 ATF_REQUIRE_MSG(init_array_state == 1, in ATF_TC_BODY()
/freebsd/contrib/netbsd-tests/net/net/
H A Dt_udp.c32 ATF_REQUIRE_MSG(e == 0, "getaddrinfo AF=%d: %s", family, in sendit()
37 ATF_REQUIRE_MSG(S >= 0, "server-socket AF=%d: %s", family, in sendit()
41 ATF_REQUIRE_MSG(e == 0, "bind AF=%d: %s", family, in sendit()
46 ATF_REQUIRE_MSG(s >= 0, "client-socket AF=%d: %s", family, in sendit()
51 ATF_REQUIRE_MSG(e == sizeof(msg), "sendto(1) AF=%d: %s", family, in sendit()
55 ATF_REQUIRE_MSG(e == sizeof(msg), "sendto(2) AF=%d: %s", family, in sendit()
60 ATF_REQUIRE_MSG(e == 0, "connect(1) AF=%d: %s", family, in sendit()
64 ATF_REQUIRE_MSG(e == sizeof(msg), "send(1) AF=%d: %s", family, in sendit()
68 ATF_REQUIRE_MSG(e == 0, "connect(2) AF=%d: %s", family, in sendit()
72 ATF_REQUIRE_MSG(e == sizeof(msg), "send(2) AF=%d: %s", family, in sendit()
/freebsd/contrib/netbsd-tests/lib/libc/gen/
H A Dt_dir.c60 ATF_REQUIRE_MSG((_creat_fd = creat((x), (m))) != -1, \ in ATF_TC_BODY()
66 ATF_REQUIRE_MSG(mkdir("t", 0755) == 0, in ATF_TC_BODY()
78 ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s", in ATF_TC_BODY()
82 ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s", in ATF_TC_BODY()
87 ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s", in ATF_TC_BODY()
91 ATF_REQUIRE_MSG(here != -1, "telldir failed: %s", strerror(errno)); in ATF_TC_BODY()
95 ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s", in ATF_TC_BODY()
104 ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s", in ATF_TC_BODY()
110 ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s", in ATF_TC_BODY()
119 ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s", in ATF_TC_BODY()
[all …]

1234567