/external/libevent/test/ |
D | regress_buffer.c | 265 tt_int_op(r, ==, 1); in test_evbuffer() 276 tt_int_op(evbuffer_commit_space(evb, v, 1), ==, 0); in test_evbuffer() 355 tt_int_op(evbuffer_get_length(src), ==, 9); in test_evbuffer_remove_buffer_with_empty2() 356 tt_int_op(evbuffer_get_length(dst), ==, 9); in test_evbuffer_remove_buffer_with_empty2() 369 tt_int_op(evbuffer_get_length(src), ==, 1); in test_evbuffer_remove_buffer_with_empty2() 370 tt_int_op(evbuffer_get_length(dst), ==, 17); in test_evbuffer_remove_buffer_with_empty2() 402 tt_int_op(evbuffer_get_length(src), ==, 6); in test_evbuffer_remove_buffer_with_empty3() 403 tt_int_op(evbuffer_get_length(dst), ==, 6); in test_evbuffer_remove_buffer_with_empty3() 416 tt_int_op(evbuffer_get_length(src), ==, 1); in test_evbuffer_remove_buffer_with_empty3() 417 tt_int_op(evbuffer_get_length(dst), ==, 11); in test_evbuffer_remove_buffer_with_empty3() [all …]
|
D | regress_util.c | 360 tt_int_op(r,==,0); in regress_sockaddr_port_format() 369 tt_int_op(r,==,0); in regress_sockaddr_port_format() 456 tt_int_op(r, ==, 6); in test_evutil_snprintf() 460 tt_int_op(r, ==, 18); in test_evutil_snprintf() 464 tt_int_op(r, ==, 12); in test_evutil_snprintf() 468 tt_int_op(r, ==, 13); in test_evutil_snprintf() 473 tt_int_op(r, ==, 10); in test_evutil_snprintf() 482 tt_int_op(evutil_ascii_strcasecmp("ABC", "ABC"), ==, 0); in test_evutil_casecmp() 483 tt_int_op(evutil_ascii_strcasecmp("ABC", "abc"), ==, 0); in test_evutil_casecmp() 484 tt_int_op(evutil_ascii_strcasecmp("ABC", "abcd"), <, 0); in test_evutil_casecmp() [all …]
|
D | regress_et.c | 97 tt_int_op(send(pair[0], test, (int)strlen(test)+1, 0), >, 0); in test_edgetriggered() 98 tt_int_op(shutdown(pair[0], EVUTIL_SHUT_WR), ==, 0); in test_edgetriggered() 108 tt_int_op(event_add(ev, NULL), ==, 0); in test_edgetriggered() 117 tt_int_op(event_base_loop(base,EVLOOP_NONBLOCK|EVLOOP_ONCE), ==, 0); in test_edgetriggered() 118 tt_int_op(event_base_loop(base,EVLOOP_NONBLOCK|EVLOOP_ONCE), ==, 0); in test_edgetriggered() 121 tt_int_op(called, ==, 1); in test_edgetriggered() 124 tt_int_op(called, ==, 2); in test_edgetriggered() 159 tt_int_op(0, ==, event_add(ev_et, NULL)); in test_edgetriggered_mix_error() 160 tt_int_op(-1, ==, event_add(ev_lt, NULL)); in test_edgetriggered_mix_error() 161 tt_int_op(EV_READ, ==, event_pending(ev_et, EV_READ, NULL)); in test_edgetriggered_mix_error() [all …]
|
D | regress.c | 449 tt_int_op(got_read_on_close, ==, EV_READ); in test_simpleclose_rw() 450 tt_int_op(got_write_on_close, ==, EV_WRITE); in test_simpleclose_rw() 451 tt_int_op(premature_event, ==, 0); in test_simpleclose_rw() 515 tt_int_op(event_base_loop(base, EVLOOP_NONBLOCK), ==, !persist); in test_simpleclose() 516 tt_int_op(got_event, ==, (events & ~EV_PERSIST)); in test_simpleclose() 684 tt_int_op(count, ==, 1); in test_persistent_timeout_jump() 746 tt_int_op(res.n, ==, 3); in test_persistent_active_timeout() 747 tt_int_op(res.events[0], ==, EV_READ); in test_persistent_active_timeout() 748 tt_int_op(res.events[1], ==, EV_TIMEOUT); in test_persistent_active_timeout() 749 tt_int_op(res.events[2], ==, EV_TIMEOUT); in test_persistent_active_timeout() [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_dns.c | 164 tt_int_op(dns_ok, ==, DNS_IPv4_A); in dns_gethostbyname() 181 tt_int_op(dns_ok, ==, DNS_IPv6_AAAA); in dns_gethostbyname6() 196 tt_int_op(dns_ok, ==, DNS_PTR); in dns_gethostbyaddr() 221 tt_int_op(dns_ok, ==, DNS_PTR); in dns_resolve_reverse() 417 tt_int_op(evdns_base_count_nameservers(base), ==, 1); in dns_server() 425 tt_int_op(slen2, ==, slen); in dns_server() 426 tt_int_op(ss2.ss_family, ==, 0); in dns_server() 428 tt_int_op(slen2, ==, slen); in dns_server() 432 tt_int_op(-1, ==, slen2); in dns_server() 580 tt_int_op(r[0].type, ==, DNS_IPv4_A); in dns_search_test_impl() [all …]
|
D | regress_listener.c | 109 tt_int_op(ss1.ss_family, ==, AF_INET); in regress_pick_a_port() 110 tt_int_op(ss2.ss_family, ==, AF_INET); in regress_pick_a_port() 114 tt_int_op(ntohl(sin1->sin_addr.s_addr), ==, 0x7f000001); in regress_pick_a_port() 115 tt_int_op(ntohl(sin2->sin_addr.s_addr), ==, 0x7f000001); in regress_pick_a_port() 116 tt_int_op(sin1->sin_port, !=, sin2->sin_port); in regress_pick_a_port() 131 tt_int_op(count1, ==, 0); in regress_pick_a_port() 132 tt_int_op(count2, ==, 0); in regress_pick_a_port() 169 tt_int_op(send(data->pair[1], "hello", 5, 0), >, 0); in regress_listener_error() 182 tt_int_op(count,==,1000); /* set by error cb */ in regress_listener_error() 265 tt_int_op(count, ==, 0); in regress_listener_immediate_close() [all …]
|
D | regress_bufferevent.c | 181 tt_int_op(bufferevent_get_enabled(bev1), ==, EV_WRITE); in test_bufferevent_impl() 182 tt_int_op(bufferevent_get_enabled(bev2), ==, EV_WRITE|EV_READ); in test_bufferevent_impl() 189 tt_int_op(bufferevent_flush(bev1, EV_WRITE, flush), >=, 0); in test_bufferevent_impl() 432 tt_int_op(low, ==, 0); in test_bufferevent_watermarks_impl() 434 tt_int_op(low, ==, 0); in test_bufferevent_watermarks_impl() 443 tt_int_op(low, ==, 10); in test_bufferevent_watermarks_impl() 444 tt_int_op(high, ==, 20); in test_bufferevent_watermarks_impl() 451 tt_int_op(low, ==, 100); in test_bufferevent_watermarks_impl() 452 tt_int_op(high, ==, 2000); in test_bufferevent_watermarks_impl() 456 tt_int_op(r, !=, 0); in test_bufferevent_watermarks_impl() [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 | 541 tt_int_op(test_ok, ==, 3); in http_basic_test_impl() 562 tt_int_op(test_ok, ==, 2); in http_basic_test_impl() 584 tt_int_op(test_ok, ==, 2); in http_basic_test_impl() 757 tt_int_op(test_ok, ==, 2); in http_bad_request_test() 844 tt_int_op(test_ok, ==, 2); in http_delete_test() 925 tt_int_op(test_ok, ==, 4); in http_on_complete_test() 1352 tt_int_op(evhttp_request_get_response_code(req), !=, HTTP_OK); in http_timed_out_request_done() 1418 tt_int_op(evhttp_make_request(evcon[i], req, EVHTTP_REQ_GET, "/delay"), !=, -1); in http_fill_backlog() 1532 tt_int_op(evhttp_make_request(evcon, req, EVHTTP_REQ_GET, "/delay"), in http_cancel_test() 1544 tt_int_op(test_ok, ==, 2); /** no servers responses */ in http_cancel_test() [all …]
|
D | regress_ssl.c | 304 tt_int_op(event_pending(&bev->ev_read, EVLIST_ALL, NULL), ==, 0); in bufferevent_openssl_check_freed() 305 tt_int_op(event_pending(&bev->ev_write, EVLIST_ALL, NULL), ==, 0); in bufferevent_openssl_check_freed() 538 tt_int_op(got_close, ==, 1); in regress_bufferevent_openssl() 539 tt_int_op(got_error, ==, 0); in regress_bufferevent_openssl() 541 tt_int_op(got_error, ==, 1); in regress_bufferevent_openssl() 543 tt_int_op(got_timeout, ==, 0); in regress_bufferevent_openssl() 560 tt_int_op(got_close, ==, 0); in regress_bufferevent_openssl() 561 tt_int_op(got_error, ==, 0); in regress_bufferevent_openssl() 562 tt_int_op(got_timeout, ==, 1); in regress_bufferevent_openssl() 773 tt_int_op(((struct sockaddr*)&ss)->sa_family, ==, AF_INET); in regress_bufferevent_openssl_connect() [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 | 123 tt_int_op(labs(timeval_msec_diff((tv1), (tv2)) - diff), <=, tolerance)
|
D | regress_rpc.c | 664 tt_int_op(test_ok, ==, 1); in rpc_basic_client_with_pause() 665 tt_int_op(hook_pause_cb_called, ==, 4); in rpc_basic_client_with_pause() 860 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
|