/external/libevent/test/ |
D | regress_buffer.c | 263 tt_int_op(r, ==, 1); in test_evbuffer() 274 tt_int_op(evbuffer_commit_space(evb, v, 1), ==, 0); in test_evbuffer() 347 tt_int_op(evbuffer_get_length(src), ==, 9); in test_evbuffer_remove_buffer_with_empty2() 348 tt_int_op(evbuffer_get_length(dst), ==, 9); in test_evbuffer_remove_buffer_with_empty2() 358 tt_int_op(evbuffer_get_length(src), ==, 1); in test_evbuffer_remove_buffer_with_empty2() 359 tt_int_op(evbuffer_get_length(dst), ==, 17); in test_evbuffer_remove_buffer_with_empty2() 388 tt_int_op(evbuffer_get_length(src), ==, 6); in test_evbuffer_remove_buffer_with_empty3() 389 tt_int_op(evbuffer_get_length(dst), ==, 6); in test_evbuffer_remove_buffer_with_empty3() 399 tt_int_op(evbuffer_get_length(src), ==, 1); in test_evbuffer_remove_buffer_with_empty3() 400 tt_int_op(evbuffer_get_length(dst), ==, 11); in test_evbuffer_remove_buffer_with_empty3() [all …]
|
D | regress_util.c | 297 tt_int_op(r,==,0); in regress_sockaddr_port_format() 306 tt_int_op(r,==,0); in regress_sockaddr_port_format() 393 tt_int_op(r, ==, 6); in test_evutil_snprintf() 397 tt_int_op(r, ==, 18); in test_evutil_snprintf() 401 tt_int_op(r, ==, 12); in test_evutil_snprintf() 405 tt_int_op(r, ==, 13); in test_evutil_snprintf() 410 tt_int_op(r, ==, 10); in test_evutil_snprintf() 419 tt_int_op(evutil_ascii_strcasecmp("ABC", "ABC"), ==, 0); in test_evutil_casecmp() 420 tt_int_op(evutil_ascii_strcasecmp("ABC", "abc"), ==, 0); in test_evutil_casecmp() 421 tt_int_op(evutil_ascii_strcasecmp("ABC", "abcd"), <, 0); in test_evutil_casecmp() [all …]
|
D | regress.c | 451 tt_int_op(got_read_on_close, ==, EV_READ); in test_simpleclose() 452 tt_int_op(got_write_on_close, ==, EV_WRITE); in test_simpleclose() 453 tt_int_op(premature_event, ==, 0); in test_simpleclose() 636 tt_int_op(count, ==, 1); in test_persistent_timeout_jump() 698 tt_int_op(res.n, ==, 3); in test_persistent_active_timeout() 699 tt_int_op(res.events[0], ==, EV_READ); in test_persistent_active_timeout() 700 tt_int_op(res.events[1], ==, EV_TIMEOUT); in test_persistent_active_timeout() 701 tt_int_op(res.events[2], ==, EV_TIMEOUT); in test_persistent_active_timeout() 753 tt_int_op(ms_100->tv_sec, ==, 0); in test_common_timeout() 754 tt_int_op(ms_200->tv_sec, ==, 0); in test_common_timeout() [all …]
|
D | regress_et.c | 103 tt_int_op(send(pair[0], test, (int)strlen(test)+1, 0), >, 0); in test_edgetriggered() 136 tt_int_op(called, ==, 1); in test_edgetriggered() 139 tt_int_op(called, ==, 2); in test_edgetriggered() 178 tt_int_op(0, ==, event_add(ev_et, NULL)); in test_edgetriggered_mix_error() 179 tt_int_op(-1, ==, event_add(ev_lt, NULL)); in test_edgetriggered_mix_error() 180 tt_int_op(EV_READ, ==, event_pending(ev_et, EV_READ, NULL)); in test_edgetriggered_mix_error() 181 tt_int_op(0, ==, event_pending(ev_lt, EV_READ, NULL)); in test_edgetriggered_mix_error() 183 tt_int_op(0, ==, event_del(ev_et)); in test_edgetriggered_mix_error() 185 tt_int_op(0, ==, event_add(ev_lt, NULL)); in test_edgetriggered_mix_error() 186 tt_int_op(-1, ==, event_add(ev_et, NULL)); in test_edgetriggered_mix_error() [all …]
|
D | regress_dns.c | 157 tt_int_op(dns_ok, ==, DNS_IPv4_A); in dns_gethostbyname() 174 tt_int_op(dns_ok, ==, DNS_IPv6_AAAA); in dns_gethostbyname6() 189 tt_int_op(dns_ok, ==, DNS_PTR); in dns_gethostbyaddr() 214 tt_int_op(dns_ok, ==, DNS_PTR); in dns_resolve_reverse() 410 tt_int_op(evdns_base_count_nameservers(base), ==, 1); in dns_server() 418 tt_int_op(slen2, ==, slen); in dns_server() 419 tt_int_op(ss2.ss_family, ==, 0); in dns_server() 421 tt_int_op(slen2, ==, slen); in dns_server() 425 tt_int_op(-1, ==, slen2); in dns_server() 573 tt_int_op(r[0].type, ==, DNS_IPv4_A); in dns_search_test_impl() [all …]
|
D | regress_finalize.c | 94 tt_int_op(cb_called, ==, 100); in test_fin_cb_invoked() 95 tt_int_op(ev_called, ==, 100); in test_fin_cb_invoked() 109 tt_int_op(cb_called, ==, 1); in test_fin_cb_invoked() 110 tt_int_op(ev_called, ==, 1); in test_fin_cb_invoked() 123 tt_int_op(cb_called, ==, 100); in test_fin_cb_invoked() 124 tt_int_op(ev_called, ==, 100); in test_fin_cb_invoked() 137 tt_int_op(ev_called, ==, 100); in test_fin_cb_invoked() 154 tt_int_op(ev_called, ==, 200); in test_fin_cb_invoked() 215 tt_int_op(ev_called, ==, 100); in test_fin_free_finalize() 216 tt_int_op(ev2_called, ==, 100); in test_fin_free_finalize() [all …]
|
D | regress_listener.c | 102 tt_int_op(evconnlistener_get_fd(listener1), >=, 0); in regress_pick_a_port() 103 tt_int_op(evconnlistener_get_fd(listener2), >=, 0); in regress_pick_a_port() 108 tt_int_op(ss1.ss_family, ==, AF_INET); in regress_pick_a_port() 109 tt_int_op(ss2.ss_family, ==, AF_INET); in regress_pick_a_port() 113 tt_int_op(ntohl(sin1->sin_addr.s_addr), ==, 0x7f000001); in regress_pick_a_port() 114 tt_int_op(ntohl(sin2->sin_addr.s_addr), ==, 0x7f000001); in regress_pick_a_port() 115 tt_int_op(sin1->sin_port, !=, sin2->sin_port); in regress_pick_a_port() 130 tt_int_op(count1, ==, 0); in regress_pick_a_port() 131 tt_int_op(count2, ==, 0); in regress_pick_a_port() 168 tt_int_op(send(data->pair[1], "hello", 5, 0), >, 0); in regress_listener_error() [all …]
|
D | regress_bufferevent.c | 140 tt_int_op(bufferevent_getfd(bev1), ==, -1); in test_bufferevent_impl() 147 tt_int_op(bufferevent_getfd(bev1), ==, pair[0]); in test_bufferevent_impl() 168 tt_int_op(bufferevent_get_enabled(bev1), ==, EV_WRITE); in test_bufferevent_impl() 169 tt_int_op(bufferevent_get_enabled(bev2), ==, EV_WRITE|EV_READ); in test_bufferevent_impl() 176 tt_int_op(bufferevent_flush(bev1, EV_WRITE, flush), >=, 0); in test_bufferevent_impl() 419 tt_int_op(low, ==, 0); in test_bufferevent_watermarks_impl() 421 tt_int_op(low, ==, 0); in test_bufferevent_watermarks_impl() 430 tt_int_op(low, ==, 10); in test_bufferevent_watermarks_impl() 431 tt_int_op(high, ==, 20); in test_bufferevent_watermarks_impl() 438 tt_int_op(low, ==, 100); in test_bufferevent_watermarks_impl() [all …]
|
D | regress_ssl.c | 237 tt_int_op(bufferevent_getfd(bev), !=, -1); in bufferevent_openssl_check_fd() 238 tt_int_op(bufferevent_setfd(bev, -1), ==, 0); in bufferevent_openssl_check_fd() 240 tt_int_op(bufferevent_getfd(bev), !=, -1); in bufferevent_openssl_check_fd() 242 tt_int_op(bufferevent_getfd(bev), ==, -1); in bufferevent_openssl_check_fd() 251 tt_int_op(event_pending(&bev->ev_read, EVLIST_ALL, NULL), ==, 0); in bufferevent_openssl_check_freed() 252 tt_int_op(event_pending(&bev->ev_write, EVLIST_ALL, NULL), ==, 0); in bufferevent_openssl_check_freed() 448 tt_int_op(bufferevent_getfd(bev1), ==, data->pair[0]); in regress_bufferevent_openssl() 482 tt_int_op(got_close, ==, 1); in regress_bufferevent_openssl() 483 tt_int_op(got_error, ==, 0); in regress_bufferevent_openssl() 485 tt_int_op(got_error, ==, 1); in regress_bufferevent_openssl() [all …]
|
D | regress_iocp.c | 188 tt_int_op(count_wait_for(8, 2000), ==, 0); in test_iocp_port() 192 tt_int_op(o1.call_count, ==, 4); in test_iocp_port() 193 tt_int_op(o2.call_count, ==, 4); in test_iocp_port() 274 tt_int_op(evbuffer_get_length(buf), ==, sizeof(junk)); in test_iocp_evbuffer() 276 tt_int_op(chain->flags & EVBUFFER_MEM_PINNED_ANY, ==, 0); in test_iocp_evbuffer() 280 tt_int_op(count_wait_for(2, 2000), ==, 0); in test_iocp_evbuffer() 282 tt_int_op(evbuffer_get_length(rbuf),==,512); in test_iocp_evbuffer() 332 tt_int_op(got_readcb, ==, 1); in test_iocp_bufferevent_async()
|
D | regress_http.c | 658 tt_int_op(fd, >=, 0); in http_bad_request_test() 711 tt_int_op(test_ok, ==, 2); in http_bad_request_test() 775 tt_int_op(fd, >=, 0); in http_delete_test() 798 tt_int_op(test_ok, ==, 2); in http_delete_test() 858 tt_int_op(fd, >=, 0); in http_on_complete_test() 879 tt_int_op(test_ok, ==, 4); in http_on_complete_test() 919 tt_int_op(fd1, >=, 0); in http_allowed_methods_test() 941 tt_int_op(fd2, >=, 0); in http_allowed_methods_test() 959 tt_int_op(fd3, >=, 0); in http_allowed_methods_test() 1309 tt_int_op(evhttp_request_get_response_code(req), !=, HTTP_OK); in http_timed_out_request_done() [all …]
|
D | regress_thread.c | 221 tt_int_op(notification_fd_used, ==, 0); in thread_basic() 243 tt_int_op(count, ==, NUM_THREADS * NUM_ITERATIONS); in thread_basic() 333 tt_int_op(event_add(&wake_one, &tv_signal), ==, 0); in thread_conditions_simple() 334 tt_int_op(event_add(&wake_all, &tv_broadcast), ==, 0); in thread_conditions_simple() 346 tt_int_op(n_timed_out, >=, 1); in thread_conditions_simple() 347 tt_int_op(n_timed_out, <=, 2); in thread_conditions_simple() 381 tt_int_op(n_broadcast + n_signal + n_timed_out, ==, NUM_THREADS); in thread_conditions_simple() 382 tt_int_op(n_signal, ==, 1); in thread_conditions_simple()
|
D | regress_zlib.c | 301 tt_int_op(r, ==, Z_OK); in test_bufferevent_zlib() 304 tt_int_op(r, ==, Z_OK); in test_bufferevent_zlib()
|
D | regress.h | 121 tt_int_op(labs(timeval_msec_diff((tv1), (tv2)) - diff), <=, tolerance)
|
D | regress_rpc.c | 665 tt_int_op(test_ok, ==, 1); in rpc_basic_client_with_pause() 666 tt_int_op(hook_pause_cb_called, ==, 4); in rpc_basic_client_with_pause() 861 tt_int_op(EVTAG_ARRAY_LEN(attack, how_often), ==, 3); in rpc_test()
|
D | tinytest_macros.h | 157 #define tt_int_op(a,op,b) \ macro
|