Lines Matching refs:ATF_REQUIRE_MSG

33 	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()
106 ATF_REQUIRE_MSG(error == 0, "getsockname failed: %s", strerror(errno)); in tcp_socketpair()
109 ATF_REQUIRE_MSG(error == 0, "connect failed: %s", strerror(errno)); in tcp_socketpair()
111 ATF_REQUIRE_MSG(out[0] >= 0, "accept failed: %s", strerror(errno)); in tcp_socketpair()
137 ATF_REQUIRE_MSG(error == 0, "getsockopt failed: %s", strerror(errno)); in nspliced()
138 ATF_REQUIRE_MSG(len == sizeof(n), "unexpected length: %d", len); in nspliced()
149 ATF_REQUIRE_MSG(sofar == (off_t)n, "spliced %jd bytes, expected %jd", \
173 ATF_REQUIRE_MSG(error == 0, "setsockopt failed: %s", strerror(errno)); in unsplice()
191 ATF_REQUIRE_MSG(error == 0, "setsockopt failed: %s", strerror(errno)); in splice_pair()
195 ATF_REQUIRE_MSG(error == 0, "setsockopt failed: %s", strerror(errno)); in splice_pair()
234 ATF_REQUIRE_MSG(data == 0, "unexpected data on left[0]: %d", data); in splice_conn_check_empty()
236 ATF_REQUIRE_MSG(data == 0, "unexpected data on left[1]: %d", data); in splice_conn_check_empty()
238 ATF_REQUIRE_MSG(data == 0, "unexpected data on right[0]: %d", data); in splice_conn_check_empty()
240 ATF_REQUIRE_MSG(data == 0, "unexpected data on right[1]: %d", data); in splice_conn_check_empty()
277 ATF_REQUIRE_MSG(n == 1, "write failed: %s", strerror(errno)); in ATF_TC_BODY()
279 ATF_REQUIRE_MSG(n == 1, "read failed: %s", strerror(errno)); in ATF_TC_BODY()
280 ATF_REQUIRE_MSG(c == 'M', "unexpected character: %c", c); in ATF_TC_BODY()
287 ATF_REQUIRE_MSG(n == 1, "write failed: %s", strerror(errno)); in ATF_TC_BODY()
289 ATF_REQUIRE_MSG(n == 1, "read failed: %s", strerror(errno)); in ATF_TC_BODY()
290 ATF_REQUIRE_MSG(c == 'J', "unexpected character: %c", c); in ATF_TC_BODY()
310 ATF_REQUIRE_MSG(error == 0, "cap_rights_get failed: %s", in remove_rights()
314 ATF_REQUIRE_MSG(error == 0, "cap_rights_limit failed: %s", in remove_rights()
343 ATF_REQUIRE_MSG(error == 0, "setsockopt failed: %s", strerror(errno)); in ATF_TC_BODY()
346 ATF_REQUIRE_MSG(error == 0, "setsockopt failed: %s", strerror(errno)); in ATF_TC_BODY()
363 ATF_REQUIRE_MSG(error == 0, "getsockopt failed: %s", strerror(errno)); in ATF_TC_BODY()
373 ATF_REQUIRE_MSG(error == 0, "cap_rights_limit failed: %s", in ATF_TC_BODY()
411 ATF_REQUIRE_MSG(error == 0, "setsockopt failed: %s", strerror(errno)); in ATF_TC_BODY()
420 ATF_REQUIRE_MSG(error == 0, "setsockopt failed: %s", strerror(errno)); in ATF_TC_BODY()
433 ATF_REQUIRE_MSG(fd >= 0, "mkstemp failed: %s", strerror(errno)); in ATF_TC_BODY()
446 ATF_REQUIRE_MSG(error == 0, "socketpair failed: %s", strerror(errno)); in ATF_TC_BODY()
457 ATF_REQUIRE_MSG(sd >= 0, "socket failed: %s", strerror(errno)); in ATF_TC_BODY()
484 ATF_REQUIRE_MSG(kq >= 0, "kqueue failed: %s", strerror(errno)); in ATF_TC_BODY()
488 ATF_REQUIRE_MSG(error == 0, "kevent failed: %s", strerror(errno)); in ATF_TC_BODY()
492 ATF_REQUIRE_MSG(nev >= 0, "kevent failed: %s", strerror(errno)); in ATF_TC_BODY()
497 ATF_REQUIRE_MSG(n == 1, "write failed: %s", strerror(errno)); in ATF_TC_BODY()
499 ATF_REQUIRE_MSG(n == 1, "read failed: %s", strerror(errno)); in ATF_TC_BODY()
503 ATF_REQUIRE_MSG(nev >= 0, "kevent failed: %s", strerror(errno)); in ATF_TC_BODY()
508 ATF_REQUIRE_MSG(n == 1, "write failed: %s", strerror(errno)); in ATF_TC_BODY()
510 ATF_REQUIRE_MSG(n == 1, "read failed: %s", strerror(errno)); in ATF_TC_BODY()
532 ATF_REQUIRE_MSG(n > 0, "write failed: %s", strerror(errno)); in ATF_TC_BODY()
536 ATF_REQUIRE_MSG(n > 0, "read failed: %s", strerror(errno)); in ATF_TC_BODY()
545 ATF_REQUIRE_MSG(n == 1, "write failed: %s", strerror(errno)); in ATF_TC_BODY()
547 ATF_REQUIRE_MSG(n == 1, "read failed: %s", strerror(errno)); in ATF_TC_BODY()
556 ATF_REQUIRE_MSG(n == 1, "write failed: %s", strerror(errno)); in ATF_TC_BODY()
558 ATF_REQUIRE_MSG(n == 1, "write failed: %s", strerror(errno)); in ATF_TC_BODY()
584 ATF_REQUIRE_MSG(n > 0, "write failed: %s", strerror(errno)); in ATF_TC_BODY()
588 ATF_REQUIRE_MSG(n > 0, "read failed: %s", strerror(errno)); in ATF_TC_BODY()
596 ATF_REQUIRE_MSG(error == 0, "usleep failed: %s", strerror(errno)); in ATF_TC_BODY()
604 ATF_REQUIRE_MSG(n == 1, "write failed: %s", strerror(errno)); in ATF_TC_BODY()
606 ATF_REQUIRE_MSG(n == 1, "write failed: %s", strerror(errno)); in ATF_TC_BODY()
636 ATF_REQUIRE_MSG(sd[2] >= 0, "socket failed: %s", strerror(errno)); in ATF_TC_BODY()
638 ATF_REQUIRE_MSG(error == 0, "listen failed: %s", strerror(errno)); in ATF_TC_BODY()
688 ATF_REQUIRE_MSG(child >= 0, "fork failed: %s", strerror(errno)); in ATF_TC_BODY()
711 ATF_REQUIRE_MSG(child >= 0, in ATF_TC_BODY()
769 ATF_REQUIRE_MSG(n == 1, "write failed: %s", strerror(errno)); in ATF_TC_BODY()
771 ATF_REQUIRE_MSG(n == 1, "read failed: %s", strerror(errno)); in ATF_TC_BODY()
772 ATF_REQUIRE_MSG(c == 'M', "unexpected character: %c", c); in ATF_TC_BODY()
779 ATF_REQUIRE_MSG(n == 1, "write failed: %s", strerror(errno)); in ATF_TC_BODY()
781 ATF_REQUIRE_MSG(n == 1, "read failed: %s", strerror(errno)); in ATF_TC_BODY()
782 ATF_REQUIRE_MSG(c == 'J', "unexpected character: %c", c); in ATF_TC_BODY()
800 ATF_REQUIRE_MSG(n == 1, "write failed: %s", strerror(errno)); in ATF_TC_BODY()
802 ATF_REQUIRE_MSG(n == 1, "read failed: %s", strerror(errno)); in ATF_TC_BODY()
803 ATF_REQUIRE_MSG(c == 'M', "unexpected character: %c", c); in ATF_TC_BODY()
810 ATF_REQUIRE_MSG(n == 1, "write failed: %s", strerror(errno)); in ATF_TC_BODY()
812 ATF_REQUIRE_MSG(n == 1, "read failed: %s", strerror(errno)); in ATF_TC_BODY()
813 ATF_REQUIRE_MSG(c == 'J', "unexpected character: %c", c); in ATF_TC_BODY()
839 ATF_REQUIRE_MSG(error == 0, "fcntl failed: %s", strerror(errno)); in xfer()
903 ATF_REQUIRE_MSG(error == 0, in ATF_TC_BODY()
906 ATF_REQUIRE_MSG(error == 0, in ATF_TC_BODY()
910 ATF_REQUIRE_MSG(error == 0, in ATF_TC_BODY()
913 ATF_REQUIRE_MSG(error == 0, in ATF_TC_BODY()
938 ATF_REQUIRE_MSG(error == 0, "setsockopt failed: %s", strerror(errno)); in ATF_TC_BODY()
942 ATF_REQUIRE_MSG(error == 0, "setsockopt failed: %s", strerror(errno)); in ATF_TC_BODY()
946 ATF_REQUIRE_MSG(n == 1, "write failed: %s", strerror(errno)); in ATF_TC_BODY()
948 ATF_REQUIRE_MSG(n == 1, "read failed: %s", strerror(errno)); in ATF_TC_BODY()
953 ATF_REQUIRE_MSG(n == 1, "write failed: %s", strerror(errno)); in ATF_TC_BODY()
955 ATF_REQUIRE_MSG(n == 1, "read failed: %s", strerror(errno)); in ATF_TC_BODY()