Lines Matching defs:testno
53 int testno;
379 for (testno = 0; testno < TST_TOTAL; ++testno) {
380 tdat[testno].setup();
382 iov[0].iov_base = tdat[testno].buf;
383 iov[0].iov_len = tdat[testno].buflen;
384 if (tdat[testno].type != SOCK_STREAM) {
385 msgdat.msg_name = tdat[testno].to;
386 msgdat.msg_namelen = tdat[testno].tolen;
388 msgdat.msg_iov = tdat[testno].iov;
389 msgdat.msg_iovlen = tdat[testno].iovcnt;
394 TEST(sendmsg(s, tdat[testno].msg, tdat[testno].flags));
399 if (TEST_RETURN != tdat[testno].retval ||
401 TEST_ERRNO != tdat[testno].experrno)) {
404 " %d)", tdat[testno].desc,
405 TEST_RETURN, tdat[testno].retval,
406 TEST_ERRNO, tdat[testno].experrno);
409 tdat[testno].desc);
411 tdat[testno].cleanup();
578 if (tdat[testno].experrno == EBADF)
592 s = socket(tdat[testno].domain, tdat[testno].type, tdat[testno].proto);
597 if (tdat[testno].type == SOCK_STREAM &&
598 connect(s, (struct sockaddr *)tdat[testno].to,
599 tdat[testno].tolen) < 0) {
615 "test %d: %s", testno, strerror(errno));
621 s = socket(tdat[testno].domain, tdat[testno].type, tdat[testno].proto);
662 s = socket(tdat[testno].domain, tdat[testno].type, tdat[testno].proto);