Lines Matching defs:test

49 try_0send(const char *test, int fd)
57 err(-1, "%s: try_0send", test);
59 errx(-1, "%s: try_0send: returned %zd", test, len);
63 try_0write(const char *test, int fd)
71 err(-1, "%s: try_0write", test);
73 errx(-1, "%s: try_0write: returned %zd", test, len);
77 setup_udp(const char *test, int *fdp)
90 err(-1, "%s: setup_udp: socket", test);
92 err(-1, "%s: setup_udp: bind(%s, %d)", test,
96 err(-1, "%s: setup_udp: connect(%s, %d)", test,
101 err(-1, "%s: setup_udp: socket", test);
103 err(-1, "%s: setup_udp: bind(%s, %d)", test,
107 err(-1, "%s: setup_udp: connect(%s, %d)", test,
115 setup_tcp(const char *test, int *fdp)
133 err(-1, "%s: setup_tcp: socket", test);
135 err(-1, "%s: bind(%s, %d)", test, inet_ntoa(sin.sin_addr),
138 err(-1, "%s: listen", test);
146 err(-1, "%s: setup_tcp: socket", test);
148 err(-1, "%s: setup_tcp: fcntl(O_NONBLOCK)", test);
151 err(-1, "%s: setup_tcp: connect(%s, %d)", test,
159 err(-1, "%s: sleep(1)", test);
162 err(-1, "%s: accept", test);
164 err(-1, "%s: sleep(1)", test);
174 err(-1, "%s: setup_tcp: select", test);
176 errx(-1, "%s: setup_tcp: select: exception", test);
178 errx(-1, "%s: setup_tcp: select: not writable", test);
186 setup_udsstream(const char *test, int *fdp)
190 err(-1, "%s: setup_udsstream: socketpair", test);
194 setup_udsdgram(const char *test, int *fdp)
198 err(-1, "%s: setup_udsdgram: socketpair", test);
202 setup_pipe(const char *test, int *fdp)
206 err(-1, "%s: setup_pipe: pipe", test);
210 setup_fifo(const char *test, int *fdp)
217 err(-1, "%s: setup_fifo: mktemp", test);
220 err(-1, "%s: setup_fifo: mkfifo(%s)", test, path);
224 err(-1, "%s: setup_fifo: open(%s, O_RDONLY)", test, path);
228 err(-1, "%s: setup_fifo: open(%s, O_WRONLY)", test, path);