Home
last modified time | relevance | path

Searched refs:tt_int_op (Results 1 – 17 of 17) sorted by relevance

/libevent-2.1.12/test/
H A Dregress_buffer.c265 tt_int_op(r, ==, 1); in test_evbuffer()
613 tt_int_op(n, ==, 1); in test_evbuffer_reserve2()
629 tt_int_op(n, ==, 1); in test_evbuffer_reserve2()
642 tt_int_op(n, ==, 2); in test_evbuffer_reserve2()
659 tt_int_op(n, ==, 2); in test_evbuffer_reserve2()
675 tt_int_op(n, ==, 2); in test_evbuffer_reserve2()
713 tt_int_op(n, ==, 1); in test_evbuffer_reserve_many()
721 tt_int_op(n, ==, 0); in test_evbuffer_reserve_many()
725 tt_int_op(n, ==, 0); in test_evbuffer_reserve_many()
736 tt_int_op(n, ==, 2); in test_evbuffer_reserve_many()
[all …]
H A Dregress_util.c360 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()
1009 tt_int_op(r, ==, 0); in test_evutil_getaddrinfo()
1020 tt_int_op(r, ==, 0); in test_evutil_getaddrinfo()
1033 tt_int_op(r,==,0); in test_evutil_getaddrinfo()
1042 tt_int_op(r,==,0); in test_evutil_getaddrinfo()
1052 tt_int_op(r,==,0); in test_evutil_getaddrinfo()
1062 tt_int_op(r,==,0); in test_evutil_getaddrinfo()
[all …]
H A Dregress_et.c108 tt_int_op(event_add(ev, NULL), ==, 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()
164 tt_int_op(0, ==, event_del(ev_et)); in test_edgetriggered_mix_error()
166 tt_int_op(0, ==, event_add(ev_lt, NULL)); in test_edgetriggered_mix_error()
167 tt_int_op(-1, ==, event_add(ev_et, NULL)); in test_edgetriggered_mix_error()
225 tt_int_op(send(pair[0], &c, 1, 0), >, 0); in test_edge_triggered_multiple_events()
238 tt_int_op(read_notification_count, ==, 1); in test_edge_triggered_multiple_events()
[all …]
H A Dregress.c1789 tt_int_op(r,==,-1); in test_bad_assign()
1806 tt_int_op(r, ==, -1); in bad_reentrant_run_loop_cb()
1823 tt_int_op(r, ==, 1); in test_bad_reentrant()
1941 tt_int_op(n, ==, 1); in read_not_timeout_cb()
2807 tt_int_op(r, ==, 0); in test_event_once()
2810 tt_int_op(r, ==, 0); in test_event_once()
2812 tt_int_op(r, <, 0); in test_event_once()
2815 tt_int_op(r, ==, 0); in test_event_once()
2820 tt_int_op(r, ==, 0); in test_event_once()
3372 tt_int_op(e1, !=, 0); in test_evmap_invalid_slots()
[all …]
H A Dregress_finalize.c94 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()
300 tt_int_op(err, ==, 0); in event_finalize_callback_free()
324 tt_int_op(test_ok, ==, 1); in test_fin_debug_use_after_free()
[all …]
H A Dregress_dns.c425 tt_int_op(slen2, ==, slen); in dns_server()
428 tt_int_op(slen2, ==, slen); in dns_server()
432 tt_int_op(-1, ==, slen2); in dns_server()
594 tt_int_op(r[7].ttl, ==, 0); in dns_search_test_impl()
761 tt_int_op(r1.count, ==, 1); in dns_retry_test_impl()
790 tt_int_op(r1.count, ==, 1); in dns_retry_test_impl()
996 tt_int_op(r.count, ==, 0); in dns_disable_when_inactive_no_ns_test()
1301 tt_int_op(fd, >=, 0); in test_bufferevent_connect_hostname()
1350 tt_int_op(ret, ==, -1); in test_bufferevent_connect_hostname()
1356 tt_int_op(ret, ==, 0); in test_bufferevent_connect_hostname()
[all …]
H A Dtinytest_demo.c76 tt_int_op(strcmp("abc", "abc"), ==, 0); in test_strcmp()
79 tt_int_op(strcmp("abc", "abcd"), < , 0); in test_strcmp()
187 tt_int_op(t2-t1, >=, 4); in test_timeout()
189 tt_int_op(t2-t1, <=, 6); in test_timeout()
201 tt_int_op(i, !=, 1); in test_timeout_retry()
213 tt_int_op(t2-t1, >=, 4); in test_timeout_retry()
215 tt_int_op(t2-t1, <=, 6); in test_timeout_retry()
H A Dregress_listener.c109 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 …]
H A Dregress_bufferevent.c432 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()
463 tt_int_op(test_ok, ==, 2); in test_bufferevent_watermarks_impl()
698 tt_int_op(n, >=, 0); in reader_eventcb()
790 tt_int_op(n_strings_read, ==, 2); in test_bufferevent_connect()
[all …]
H A Dregress_iocp.c188 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()
H A Dregress_http.c2439 tt_int_op(r, ==, 0); in http_parse_query_test()
2445 tt_int_op(r, ==, 0); in http_parse_query_test()
2450 tt_int_op(r, ==, 0); in http_parse_query_test()
2455 tt_int_op(r, ==, 0); in http_parse_query_test()
2460 tt_int_op(r, ==, 0); in http_parse_query_test()
2469 tt_int_op(r, ==, 0); in http_parse_query_test()
2473 tt_int_op(r, ==, 0); in http_parse_query_test()
2491 tt_int_op(r, ==, 0); in http_parse_query_test()
2510 tt_int_op(r, ==, 0); in http_parse_query_str_test()
2515 tt_int_op(r, ==, 0); in http_parse_query_str_test()
[all …]
H A Dregress_ssl.c538 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()
793 tt_int_op(rw.read, <=, 100); in regress_bufferevent_openssl_connect()
794 tt_int_op(rw.write, <=, 100); in regress_bufferevent_openssl_connect()
975 tt_int_op(client.get, ==, client.limit); in regress_bufferevent_openssl_wm()
[all …]
H A Dregress_thread.c221 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()
H A Dregress_zlib.c301 tt_int_op(r, ==, Z_OK); in test_bufferevent_zlib()
304 tt_int_op(r, ==, Z_OK); in test_bufferevent_zlib()
H A Dregress.h123 tt_int_op(labs(timeval_msec_diff((tv1), (tv2)) - diff), <=, tolerance)
H A Dregress_rpc.c664 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()
H A Dtinytest_macros.h157 #define tt_int_op(a,op,b) \ macro