Home
last modified time | relevance | path

Searched refs:REQUIRE_ERRNO (Results 1 – 6 of 6) sorted by relevance

/freebsd/contrib/netbsd-tests/lib/libc/ttyio/
H A Dt_ptm.c49 #define REQUIRE_ERRNO(x, v) \ macro
73 REQUIRE_ERRNO(fstat(fdm, &stm), -1); in ATF_TC_BODY()
75 REQUIRE_ERRNO(ioctl(fdm, TIOCPTMGET, &ptm), -1); in ATF_TC_BODY()
86 REQUIRE_ERRNO(fstat(ptm.cfd, &stm), -1); in ATF_TC_BODY()
87 REQUIRE_ERRNO(stat(ptm.cn, &sts), -1); in ATF_TC_BODY()
91 REQUIRE_ERRNO(fstat(ptm.sfd, &stm), -1); in ATF_TC_BODY()
92 REQUIRE_ERRNO(stat(ptm.sn, &sts), -1); in ATF_TC_BODY()
139 REQUIRE_ERRNO(fstat(fdm, &stm), -1); in ATF_TC_BODY()
142 REQUIRE_ERRNO(stat("/dev/ptyp0", &sts), -1); in ATF_TC_BODY()
148 REQUIRE_ERRNO(grantpt(fdm), -1); in ATF_TC_BODY()
[all …]
H A Dt_ttyio.c61 #define REQUIRE_ERRNO(x, v) ATF_REQUIRE_MSG(x != v, "%s: %s", #x, strerror(errno)) macro
75 REQUIRE_ERRNO(wait(NULL), -1); in sigchld()
99 REQUIRE_ERRNO(openpty(&m, &s, name, &term, NULL), -1); in ATF_TC_BODY()
138 REQUIRE_ERRNO(sigaction(SIGCHLD, &sa, NULL), -1); in ATF_TC_BODY()
141 REQUIRE_ERRNO(write(s, "Hello world\n", 12), -1); in ATF_TC_BODY()
152 REQUIRE_ERRNO(sigaction(SIGCHLD, &sa, NULL), -1); in ATF_TC_BODY()
/freebsd/contrib/netbsd-tests/lib/libc/setjmp/
H A Dt_threadjmp.c82 #define REQUIRE_ERRNO(x) ATF_REQUIRE_MSG(x, "%s", strerror(errno)) macro
123 REQUIRE_ERRNO(sigaction(SIGABRT, &sa, NULL) != -1); in h_check()
124 REQUIRE_ERRNO(sigemptyset(&ss) != -1); in h_check()
125 REQUIRE_ERRNO(sigaddset(&ss, SIGABRT) != -1); in h_check()
126 REQUIRE_ERRNO(sigprocmask(SIG_BLOCK, &ss, NULL) != -1); in h_check()
146 REQUIRE_ERRNO(sigprocmask(SIG_UNBLOCK, &ss, NULL) != -1); in h_check()
H A Dt_setjmp.c81 #define REQUIRE_ERRNO(x) ATF_REQUIRE_MSG(x, "%s", strerror(errno)) macro
124 REQUIRE_ERRNO(sigaction(SIGABRT, &sa, NULL) != -1); in h_check()
125 REQUIRE_ERRNO(sigemptyset(&ss) != -1); in h_check()
126 REQUIRE_ERRNO(sigaddset(&ss, SIGABRT) != -1); in h_check()
127 REQUIRE_ERRNO(sigprocmask(SIG_BLOCK, &ss, NULL) != -1); in h_check()
149 REQUIRE_ERRNO(sigprocmask(SIG_UNBLOCK, &ss, NULL) != -1); in h_check()
/freebsd/contrib/netbsd-tests/lib/libc/stdlib/
H A Dt_hsearch.c76 #define REQUIRE_ERRNO(x) ATF_REQUIRE_MSG(x, "%s", strerror(errno)) macro
91 REQUIRE_ERRNO(hcreate(16) != 0); in ATF_TC_BODY()
143 REQUIRE_ERRNO(hcreate(16)); in ATF_TC_BODY()
178 REQUIRE_ERRNO(hcreate(16)); in ATF_TC_BODY()
199 REQUIRE_ERRNO(hcreate(16)); in ATF_TC_BODY()
251 REQUIRE_ERRNO(hcreate_r(16, &t) != 0); in ATF_TC_BODY()
304 REQUIRE_ERRNO(hcreate_r(16, &t)); in ATF_TC_BODY()
339 REQUIRE_ERRNO(hcreate_r(16, &t)); in ATF_TC_BODY()
364 REQUIRE_ERRNO(hcreate_r(16, &t)); in ATF_TC_BODY()
/freebsd/contrib/netbsd-tests/lib/libc/locale/
H A Dt_mbstowcs.c70 #define REQUIRE_ERRNO(x, v) \ macro
170 REQUIRE_ERRNO((ssize_t)mbstowcs(wbuf, t->data, SIZE-1), -1); in ATF_TC_BODY()
171 REQUIRE_ERRNO((ssize_t)wcstombs(buf, wbuf, SIZE-1), -1); in ATF_TC_BODY()