Lines Matching refs:tt_assert
210 tt_assert(base); in dns_resolve_reverse()
211 tt_assert(dns); in dns_resolve_reverse()
217 tt_assert(req); in dns_resolve_reverse()
457 tt_assert(dns_got_cancel); in dns_server()
556 tt_assert(regress_dnsserver(base, &portnum, table)); in dns_search_test_impl()
560 tt_assert(!evdns_base_nameserver_ip_add(dns, buf)); in dns_search_test_impl()
641 tt_assert(request_count > 0); in search_cancel_server_cb()
642 tt_assert(!evdns_server_request_respond(req, 3)); in search_cancel_server_cb()
664 tt_assert(port); in dns_search_cancel_test()
668 tt_assert(!evdns_base_nameserver_ip_add(dns, buf)); in dns_search_cancel_test()
717 tt_assert(evutil_inet_pton(AF_INET, "16.32.64.128", &in)); in fail_server_cb()
720 tt_assert(! evdns_server_request_respond(req, 0)) in fail_server_cb()
741 tt_assert(port); in dns_retry_test_impl()
745 tt_assert(!evdns_base_nameserver_ip_add(dns, buf)); in dns_retry_test_impl()
746 tt_assert(! evdns_base_set_option(dns, "timeout", "0.2")); in dns_retry_test_impl()
747 tt_assert(! evdns_base_set_option(dns, "max-timeouts:", "10")); in dns_retry_test_impl()
748 tt_assert(! evdns_base_set_option(dns, "initial-probe-timeout", "0.1")); in dns_retry_test_impl()
767 tt_assert(! evdns_base_set_option(dns, "max-timeouts:", "2")); in dns_retry_test_impl()
768 tt_assert(! evdns_base_set_option(dns, "attempts:", "3")); in dns_retry_test_impl()
838 tt_assert(port1); in dns_reissue_test_impl()
841 tt_assert(port2); in dns_reissue_test_impl()
846 tt_assert(!evdns_base_nameserver_ip_add(dns, buf1)); in dns_reissue_test_impl()
847 tt_assert(! evdns_base_set_option(dns, "timeout:", "0.3")); in dns_reissue_test_impl()
848 tt_assert(! evdns_base_set_option(dns, "max-timeouts:", "2")); in dns_reissue_test_impl()
849 tt_assert(! evdns_base_set_option(dns, "attempts:", "5")); in dns_reissue_test_impl()
856 tt_assert(!evdns_base_nameserver_ip_add(dns, buf2)); in dns_reissue_test_impl()
917 tt_assert(dns_port); in dns_inflight_test_impl()
925 tt_assert(!evdns_base_nameserver_ip_add(dns, buf)); in dns_inflight_test_impl()
926 tt_assert(! evdns_base_set_option(dns, "max-inflight:", "3")); in dns_inflight_test_impl()
927 tt_assert(! evdns_base_set_option(dns, "randomize-case:", "0")); in dns_inflight_test_impl()
977 tt_assert(inactive_base); in dns_disable_when_inactive_no_ns_test()
980 tt_assert(regress_dnsserver(inactive_base, &portnum, search_table)); in dns_disable_when_inactive_no_ns_test()
984 tt_assert(!evdns_base_nameserver_ip_add(dns, buf)); in dns_disable_when_inactive_no_ns_test()
985 tt_assert(! evdns_base_set_option(dns, "timeout:", "0.1")); in dns_disable_when_inactive_no_ns_test()
1015 tt_assert(dns); in dns_initialize_nameservers_test()
1020 tt_assert(dns); in dns_initialize_nameservers_test()
1037 tt_assert(ok); in dns_nameservers_no_default_test()
1040 tt_assert(dns); in dns_nameservers_no_default_test()
1282 tt_assert(listener); in test_bufferevent_connect_hostname()
1288 tt_assert(port); in test_bufferevent_connect_hostname()
1302 tt_assert(!close(fd)); in test_bufferevent_connect_hostname()
1304 tt_assert(!setrlimit(RLIMIT_NOFILE, &file)); in test_bufferevent_connect_hostname()
1320 tt_assert(!bufferevent_socket_connect_hostname(be[3], NULL, AF_INET, in test_bufferevent_connect_hostname()
1323 tt_assert(!bufferevent_socket_connect_hostname(be[4], NULL, AF_INET, in test_bufferevent_connect_hostname()
1338 tt_assert(!bufferevent_socket_connect_hostname(be[0], dns, AF_INET, in test_bufferevent_connect_hostname()
1341 tt_assert(!bufferevent_socket_connect_hostname(be[1], dns, AF_INET, in test_bufferevent_connect_hostname()
1344 tt_assert(!bufferevent_socket_connect_hostname(be[2], dns, AF_INET, in test_bufferevent_connect_hostname()
1444 tt_assert(dns_base); in test_getaddrinfo_async()
1449 tt_assert(! evdns_base_set_option(dns_base, "timeout", "0.3")); in test_getaddrinfo_async()
1450 tt_assert(! evdns_base_set_option(dns_base, "getaddrinfo-allow-skew", "0.2")); in test_getaddrinfo_async()
1462 tt_assert(! r); in test_getaddrinfo_async()
1490 tt_assert(!r); in test_getaddrinfo_async()
1492 tt_assert(local_outcome.ai); in test_getaddrinfo_async()
1504 tt_assert(!r); in test_getaddrinfo_async()
1506 tt_assert(local_outcome.ai); in test_getaddrinfo_async()
1508 tt_assert(a); in test_getaddrinfo_async()
1511 tt_assert(a); in test_getaddrinfo_async()
1524 tt_assert(!r); in test_getaddrinfo_async()
1526 tt_assert(local_outcome.ai); in test_getaddrinfo_async()
1529 tt_assert(a); in test_getaddrinfo_async()
1533 tt_assert(a); in test_getaddrinfo_async()
1545 tt_assert(!r); in test_getaddrinfo_async()
1547 tt_assert(local_outcome.ai); in test_getaddrinfo_async()
1550 tt_assert(a); in test_getaddrinfo_async()
1554 tt_assert(a); in test_getaddrinfo_async()
1566 tt_assert(!r); in test_getaddrinfo_async()
1568 tt_assert(local_outcome.ai); in test_getaddrinfo_async()
1571 tt_assert(a); in test_getaddrinfo_async()
1575 tt_assert(a); in test_getaddrinfo_async()
1587 tt_assert(! r); in test_getaddrinfo_async()
1589 tt_assert(local_outcome.ai); in test_getaddrinfo_async()
1600 tt_assert(port); in test_getaddrinfo_async()
1613 tt_assert(r); in test_getaddrinfo_async()
1618 tt_assert(r); in test_getaddrinfo_async()
1624 tt_assert(r); in test_getaddrinfo_async()
1631 tt_assert(r); in test_getaddrinfo_async()
1638 tt_assert(r); in test_getaddrinfo_async()
1644 tt_assert(r); in test_getaddrinfo_async()
1651 tt_assert(r); in test_getaddrinfo_async()
1658 tt_assert(r); in test_getaddrinfo_async()
1665 tt_assert(r); in test_getaddrinfo_async()
1672 tt_assert(r); in test_getaddrinfo_async()
1680 tt_assert(r); in test_getaddrinfo_async()
1685 tt_assert(r); in test_getaddrinfo_async()
1707 tt_assert(a_out[0].ai); in test_getaddrinfo_async()
1708 tt_assert(a_out[0].ai->ai_next); in test_getaddrinfo_async()
1709 tt_assert(!a_out[0].ai->ai_next->ai_next); in test_getaddrinfo_async()
1711 tt_assert(a); in test_getaddrinfo_async()
1714 tt_assert(a); in test_getaddrinfo_async()
1716 tt_assert(a_out[0].ai->ai_canonname); in test_getaddrinfo_async()
1721 tt_assert(a_out[1].ai); in test_getaddrinfo_async()
1722 tt_assert(! a_out[1].ai->ai_next); in test_getaddrinfo_async()
1724 tt_assert(a_out[1].ai->ai_canonname == NULL); in test_getaddrinfo_async()
1729 tt_assert(a_out[2].ai); in test_getaddrinfo_async()
1730 tt_assert(! a_out[2].ai->ai_next); in test_getaddrinfo_async()
1735 tt_assert(a_out[3].ai); in test_getaddrinfo_async()
1736 tt_assert(! a_out[3].ai->ai_next); in test_getaddrinfo_async()
1741 tt_assert(a_out[4].ai); in test_getaddrinfo_async()
1742 tt_assert(! a_out[4].ai->ai_next); in test_getaddrinfo_async()
1747 tt_assert(! a_out[5].ai); in test_getaddrinfo_async()
1751 tt_assert(! a_out[6].ai); in test_getaddrinfo_async()
1755 tt_assert(a_out[7].ai); in test_getaddrinfo_async()
1756 tt_assert(! a_out[7].ai->ai_next); in test_getaddrinfo_async()
1761 tt_assert(! a_out[8].ai); in test_getaddrinfo_async()
1765 tt_assert(a_out[9].ai); in test_getaddrinfo_async()
1770 tt_assert(ai_find_by_family(a_out[9].ai, PF_INET6)); in test_getaddrinfo_async()
1775 tt_assert(ai_find_by_family(a_out[9].ai, PF_INET)); in test_getaddrinfo_async()
1779 tt_assert(a_out[10].ai); in test_getaddrinfo_async()
1780 tt_assert(! a_out[10].ai->ai_next); in test_getaddrinfo_async()
1785 tt_assert(a_out[11].ai == NULL); in test_getaddrinfo_async()
1819 tt_assert(status->magic == GAIC_MAGIC); in gaic_cancel_request_cb()
1831 tt_assert(req->nquestions); in gaic_server_cb()
1846 tt_assert(status->magic == GAIC_MAGIC); in gaic_getaddrinfo_cb()
1849 tt_assert(status->canceled); in gaic_getaddrinfo_cb()
1953 tt_assert(env); in testleak_cleanup()
2003 tt_assert(!evdns_base_resume(env->dns_base)); in dbg_leak_resume()
2006 tt_assert(!evdns_base_resume(env->dns_base)); in dbg_leak_resume()
2134 tt_assert(dns_port); in dns_client_fail_requests_test()
2139 tt_assert(!evdns_base_nameserver_ip_add(dns, buf)); in dns_client_fail_requests_test()
2142 tt_assert(!evdns_base_set_option(dns, "max-inflight:", "11")); in dns_client_fail_requests_test()
2182 tt_assert(dns_port); in dns_client_fail_requests_getaddrinfo_test()
2187 tt_assert(!evdns_base_nameserver_ip_add(dns, buf)); in dns_client_fail_requests_getaddrinfo_test()
2190 tt_assert(evdns_getaddrinfo(dns, "foof.example.com", "80", NULL, getaddrinfo_cb, &r[i])); in dns_client_fail_requests_getaddrinfo_test()
2278 tt_assert(rp.base); in getaddrinfo_race_gotresolve_test()
2284 tt_assert(dns_port); in getaddrinfo_race_gotresolve_test()
2289 tt_assert(!evdns_base_nameserver_ip_add(rp.dns, buf)); in getaddrinfo_race_gotresolve_test()
2296 tt_assert(rp.lock); in getaddrinfo_race_gotresolve_test()
2297 tt_assert(rp.reqs_cmpl_cond); in getaddrinfo_race_gotresolve_test()
2298 tt_assert(rp.bw_threads_exited_cond); in getaddrinfo_race_gotresolve_test()
2314 tt_assert(evdns_getaddrinfo(rp.dns, "foof.example.com", "80", NULL, race_gai_cb, &rp)); in getaddrinfo_race_gotresolve_test()
2334 tt_assert(EVTHREAD_COND_WAIT_TIMED(rp.bw_threads_exited_cond, rp.lock, &tv) == 0); in getaddrinfo_race_gotresolve_test()
2362 tt_assert(dns_base); in test_set_so_rcvbuf_so_sndbuf()
2364 tt_assert(!evdns_base_set_option(dns_base, "so-rcvbuf", "10240")); in test_set_so_rcvbuf_so_sndbuf()
2365 tt_assert(!evdns_base_set_option(dns_base, "so-sndbuf", "10240")); in test_set_so_rcvbuf_so_sndbuf()
2368 tt_assert(!evdns_base_nameserver_ip_add(dns_base, "127.0.0.1")); in test_set_so_rcvbuf_so_sndbuf()
2405 tt_assert(dns_base); in test_set_option()
2408 tt_assert(SUCCESS == evdns_base_set_option(dns_base, int_options[i], "0")); in test_set_option()
2409 tt_assert(SUCCESS == evdns_base_set_option(dns_base, int_options[i], "1")); in test_set_option()
2410 tt_assert(SUCCESS == evdns_base_set_option(dns_base, int_options[i], "10000")); in test_set_option()
2411 tt_assert(FAIL == evdns_base_set_option(dns_base, int_options[i], "foo")); in test_set_option()
2412 tt_assert(FAIL == evdns_base_set_option(dns_base, int_options[i], "3.14")); in test_set_option()
2416 tt_assert(SUCCESS == evdns_base_set_option(dns_base, timeval_options[i], "1")); in test_set_option()
2417 tt_assert(SUCCESS == evdns_base_set_option(dns_base, timeval_options[i], "0.001")); in test_set_option()
2418 tt_assert(SUCCESS == evdns_base_set_option(dns_base, timeval_options[i], "3.14")); in test_set_option()
2419 tt_assert(SUCCESS == evdns_base_set_option(dns_base, timeval_options[i], "10000")); in test_set_option()
2420 tt_assert(FAIL == evdns_base_set_option(dns_base, timeval_options[i], "0")); in test_set_option()
2421 tt_assert(FAIL == evdns_base_set_option(dns_base, timeval_options[i], "foo")); in test_set_option()
2425 tt_assert(SUCCESS == evdns_base_set_option(dns_base, addr_port_options[i], "8.8.8.8:80")); in test_set_option()
2426 tt_assert(SUCCESS == evdns_base_set_option(dns_base, addr_port_options[i], "1.2.3.4")); in test_set_option()
2427 tt_assert(SUCCESS == evdns_base_set_option(dns_base, addr_port_options[i], "::1:82")); in test_set_option()
2428 tt_assert(SUCCESS == evdns_base_set_option(dns_base, addr_port_options[i], "3::4")); in test_set_option()
2429 tt_assert(FAIL == evdns_base_set_option(dns_base, addr_port_options[i], "3.14")); in test_set_option()
2430 tt_assert(FAIL == evdns_base_set_option(dns_base, addr_port_options[i], "foo")); in test_set_option()