Lines Matching refs:a_out

1354 	struct gai_outcome a_out[12];  in test_getaddrinfo_async()  local
1363 memset(a_out, 0, sizeof(a_out)); in test_getaddrinfo_async()
1535 &hints, gai_cb, &a_out[0]); in test_getaddrinfo_async()
1540 &hints, gai_cb, &a_out[1]); in test_getaddrinfo_async()
1546 &hints, gai_cb, &a_out[2]); in test_getaddrinfo_async()
1553 &hints, gai_cb, &a_out[3]); in test_getaddrinfo_async()
1560 &hints, gai_cb, &a_out[4]); in test_getaddrinfo_async()
1566 &hints, gai_cb, &a_out[5]); in test_getaddrinfo_async()
1573 &hints, gai_cb, &a_out[6]); in test_getaddrinfo_async()
1580 &hints, gai_cb, &a_out[7]); in test_getaddrinfo_async()
1587 "8008", &hints, gai_cb, &a_out[8]); in test_getaddrinfo_async()
1594 "8009", &hints, gai_cb, &a_out[9]); in test_getaddrinfo_async()
1602 &hints, gai_cb, &a_out[10]); in test_getaddrinfo_async()
1607 &hints, gai_cb, &a_out[11]); in test_getaddrinfo_async()
1629 tt_int_op(a_out[0].err, ==, 0); in test_getaddrinfo_async()
1630 tt_assert(a_out[0].ai); in test_getaddrinfo_async()
1631 tt_assert(a_out[0].ai->ai_next); in test_getaddrinfo_async()
1632 tt_assert(!a_out[0].ai->ai_next->ai_next); in test_getaddrinfo_async()
1633 a = ai_find_by_family(a_out[0].ai, PF_INET); in test_getaddrinfo_async()
1636 a = ai_find_by_family(a_out[0].ai, PF_INET6); in test_getaddrinfo_async()
1639 tt_assert(a_out[0].ai->ai_canonname); in test_getaddrinfo_async()
1640 tt_str_op(a_out[0].ai->ai_canonname, ==, "both-canonical.example.com"); in test_getaddrinfo_async()
1643 tt_int_op(a_out[1].err, ==, 0); in test_getaddrinfo_async()
1644 tt_assert(a_out[1].ai); in test_getaddrinfo_async()
1645 tt_assert(! a_out[1].ai->ai_next); in test_getaddrinfo_async()
1646 test_ai_eq(a_out[1].ai, "18.52.86.120:8001", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async()
1647 tt_assert(a_out[1].ai->ai_canonname == NULL); in test_getaddrinfo_async()
1651 tt_int_op(a_out[2].err, ==, 0); in test_getaddrinfo_async()
1652 tt_assert(a_out[2].ai); in test_getaddrinfo_async()
1653 tt_assert(! a_out[2].ai->ai_next); in test_getaddrinfo_async()
1654 test_ai_eq(a_out[2].ai, "[b0b::f00d]:8002", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async()
1657 tt_int_op(a_out[3].err, ==, 0); in test_getaddrinfo_async()
1658 tt_assert(a_out[3].ai); in test_getaddrinfo_async()
1659 tt_assert(! a_out[3].ai->ai_next); in test_getaddrinfo_async()
1660 test_ai_eq(a_out[3].ai, "18.52.86.120:8003", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async()
1663 tt_int_op(a_out[4].err, ==, 0); in test_getaddrinfo_async()
1664 tt_assert(a_out[4].ai); in test_getaddrinfo_async()
1665 tt_assert(! a_out[4].ai->ai_next); in test_getaddrinfo_async()
1666 test_ai_eq(a_out[4].ai, "[b0b::f00d]:8004", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async()
1669 tt_int_op(a_out[5].err, ==, EVUTIL_EAI_NONAME); in test_getaddrinfo_async()
1670 tt_assert(! a_out[5].ai); in test_getaddrinfo_async()
1673 tt_int_op(a_out[6].err, ==, EVUTIL_EAI_NONAME); in test_getaddrinfo_async()
1674 tt_assert(! a_out[6].ai); in test_getaddrinfo_async()
1677 tt_int_op(a_out[7].err, ==, 0); in test_getaddrinfo_async()
1678 tt_assert(a_out[7].ai); in test_getaddrinfo_async()
1679 tt_assert(! a_out[7].ai->ai_next); in test_getaddrinfo_async()
1680 test_ai_eq(a_out[7].ai, "171.205.239.1:8007", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async()
1683 tt_int_op(a_out[8].err, ==, EVUTIL_EAI_NONAME); in test_getaddrinfo_async()
1684 tt_assert(! a_out[8].ai); in test_getaddrinfo_async()
1687 tt_int_op(a_out[9].err, ==, 0); in test_getaddrinfo_async()
1688 tt_assert(a_out[9].ai); in test_getaddrinfo_async()
1689 a = ai_find_by_family(a_out[9].ai, PF_INET); in test_getaddrinfo_async()
1693 tt_assert(ai_find_by_family(a_out[9].ai, PF_INET6)); in test_getaddrinfo_async()
1694 a = ai_find_by_family(a_out[9].ai, PF_INET6); in test_getaddrinfo_async()
1698 tt_assert(ai_find_by_family(a_out[9].ai, PF_INET)); in test_getaddrinfo_async()
1701 tt_int_op(a_out[10].err, ==, 0); in test_getaddrinfo_async()
1702 tt_assert(a_out[10].ai); in test_getaddrinfo_async()
1703 tt_assert(! a_out[10].ai->ai_next); in test_getaddrinfo_async()
1704 test_ai_eq(a_out[10].ai, "[a0a::ff01]:8010", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async()
1707 tt_int_op(a_out[11].err, ==, EVUTIL_EAI_CANCEL); in test_getaddrinfo_async()
1708 tt_assert(a_out[11].ai == NULL); in test_getaddrinfo_async()
1713 for (i=0;i<(int)ARRAY_SIZE(a_out);++i) { in test_getaddrinfo_async()
1714 if (a_out[i].ai) in test_getaddrinfo_async()
1715 evutil_freeaddrinfo(a_out[i].ai); in test_getaddrinfo_async()