Lines Matching refs:a_out
1445 struct gai_outcome a_out[12]; in test_getaddrinfo_async() local
1454 memset(a_out, 0, sizeof(a_out)); in test_getaddrinfo_async()
1626 &hints, gai_cb, &a_out[0]); in test_getaddrinfo_async()
1631 &hints, gai_cb, &a_out[1]); in test_getaddrinfo_async()
1637 &hints, gai_cb, &a_out[2]); in test_getaddrinfo_async()
1644 &hints, gai_cb, &a_out[3]); in test_getaddrinfo_async()
1651 &hints, gai_cb, &a_out[4]); in test_getaddrinfo_async()
1657 &hints, gai_cb, &a_out[5]); in test_getaddrinfo_async()
1664 &hints, gai_cb, &a_out[6]); in test_getaddrinfo_async()
1671 &hints, gai_cb, &a_out[7]); in test_getaddrinfo_async()
1678 "8008", &hints, gai_cb, &a_out[8]); in test_getaddrinfo_async()
1685 "8009", &hints, gai_cb, &a_out[9]); in test_getaddrinfo_async()
1693 &hints, gai_cb, &a_out[10]); in test_getaddrinfo_async()
1698 &hints, gai_cb, &a_out[11]); in test_getaddrinfo_async()
1720 tt_int_op(a_out[0].err, ==, 0); in test_getaddrinfo_async()
1721 tt_assert(a_out[0].ai); in test_getaddrinfo_async()
1722 tt_assert(a_out[0].ai->ai_next); in test_getaddrinfo_async()
1723 tt_assert(!a_out[0].ai->ai_next->ai_next); in test_getaddrinfo_async()
1724 a = ai_find_by_family(a_out[0].ai, PF_INET); in test_getaddrinfo_async()
1727 a = ai_find_by_family(a_out[0].ai, PF_INET6); in test_getaddrinfo_async()
1730 tt_assert(a_out[0].ai->ai_canonname); in test_getaddrinfo_async()
1731 tt_str_op(a_out[0].ai->ai_canonname, ==, "both-canonical.example.com"); in test_getaddrinfo_async()
1734 tt_int_op(a_out[1].err, ==, 0); in test_getaddrinfo_async()
1735 tt_assert(a_out[1].ai); in test_getaddrinfo_async()
1736 tt_assert(! a_out[1].ai->ai_next); in test_getaddrinfo_async()
1737 test_ai_eq(a_out[1].ai, "18.52.86.120:8001", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async()
1738 tt_assert(a_out[1].ai->ai_canonname == NULL); in test_getaddrinfo_async()
1742 tt_int_op(a_out[2].err, ==, 0); in test_getaddrinfo_async()
1743 tt_assert(a_out[2].ai); in test_getaddrinfo_async()
1744 tt_assert(! a_out[2].ai->ai_next); in test_getaddrinfo_async()
1745 test_ai_eq(a_out[2].ai, "[b0b::f00d]:8002", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async()
1748 tt_int_op(a_out[3].err, ==, 0); in test_getaddrinfo_async()
1749 tt_assert(a_out[3].ai); in test_getaddrinfo_async()
1750 tt_assert(! a_out[3].ai->ai_next); in test_getaddrinfo_async()
1751 test_ai_eq(a_out[3].ai, "18.52.86.120:8003", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async()
1754 tt_int_op(a_out[4].err, ==, 0); in test_getaddrinfo_async()
1755 tt_assert(a_out[4].ai); in test_getaddrinfo_async()
1756 tt_assert(! a_out[4].ai->ai_next); in test_getaddrinfo_async()
1757 test_ai_eq(a_out[4].ai, "[b0b::f00d]:8004", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async()
1760 tt_int_op(a_out[5].err, ==, EVUTIL_EAI_NONAME); in test_getaddrinfo_async()
1761 tt_assert(! a_out[5].ai); in test_getaddrinfo_async()
1764 tt_int_op(a_out[6].err, ==, EVUTIL_EAI_NONAME); in test_getaddrinfo_async()
1765 tt_assert(! a_out[6].ai); in test_getaddrinfo_async()
1768 tt_int_op(a_out[7].err, ==, 0); in test_getaddrinfo_async()
1769 tt_assert(a_out[7].ai); in test_getaddrinfo_async()
1770 tt_assert(! a_out[7].ai->ai_next); in test_getaddrinfo_async()
1771 test_ai_eq(a_out[7].ai, "171.205.239.1:8007", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async()
1774 tt_int_op(a_out[8].err, ==, EVUTIL_EAI_NONAME); in test_getaddrinfo_async()
1775 tt_assert(! a_out[8].ai); in test_getaddrinfo_async()
1778 tt_int_op(a_out[9].err, ==, 0); in test_getaddrinfo_async()
1779 tt_assert(a_out[9].ai); in test_getaddrinfo_async()
1780 a = ai_find_by_family(a_out[9].ai, PF_INET); in test_getaddrinfo_async()
1784 tt_assert(ai_find_by_family(a_out[9].ai, PF_INET6)); in test_getaddrinfo_async()
1785 a = ai_find_by_family(a_out[9].ai, PF_INET6); in test_getaddrinfo_async()
1789 tt_assert(ai_find_by_family(a_out[9].ai, PF_INET)); in test_getaddrinfo_async()
1792 tt_int_op(a_out[10].err, ==, 0); in test_getaddrinfo_async()
1793 tt_assert(a_out[10].ai); in test_getaddrinfo_async()
1794 tt_assert(! a_out[10].ai->ai_next); in test_getaddrinfo_async()
1795 test_ai_eq(a_out[10].ai, "[a0a::ff01]:8010", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async()
1798 tt_int_op(a_out[11].err, ==, EVUTIL_EAI_CANCEL); in test_getaddrinfo_async()
1799 tt_assert(a_out[11].ai == NULL); in test_getaddrinfo_async()
1804 for (i = 0; i < ARRAY_SIZE(a_out); ++i) { in test_getaddrinfo_async()
1805 if (a_out[i].ai) in test_getaddrinfo_async()
1806 evutil_freeaddrinfo(a_out[i].ai); in test_getaddrinfo_async()