Home
last modified time | relevance | path

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

/NextBSD/contrib/ntp/sntp/libevent/test/
HDregress_buffer.c263 tt_int_op(r, ==, 1); in test_evbuffer()
274 tt_int_op(evbuffer_commit_space(evb, v, 1), ==, 0); in test_evbuffer()
338 tt_int_op(n, ==, 1); in test_evbuffer_reserve2()
339 tt_int_op(evbuffer_get_length(buf), ==, 0); in test_evbuffer_reserve2()
341 tt_int_op(v[0].iov_len, >=, 1024); in test_evbuffer_reserve2()
347 tt_int_op(0, ==, evbuffer_commit_space(buf, v, 1)); in test_evbuffer_reserve2()
348 tt_int_op(evbuffer_get_length(buf), ==, 512); in test_evbuffer_reserve2()
354 tt_int_op(n, ==, 1); in test_evbuffer_reserve2()
356 tt_int_op(remaining, ==, v[0].iov_len); in test_evbuffer_reserve2()
359 tt_int_op(0, ==, evbuffer_commit_space(buf, v, 1)); in test_evbuffer_reserve2()
[all …]
HDregress_util.c297 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 …]
HDregress.c451 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 …]
HDregress_et.c107 tt_int_op(send(pair[0], test, (int)strlen(test)+1, 0), >, 0); in test_edgetriggered()
140 tt_int_op(called, ==, 1); in test_edgetriggered()
143 tt_int_op(called, ==, 2); in test_edgetriggered()
182 tt_int_op(0, ==, event_add(ev_et, NULL)); in test_edgetriggered_mix_error()
183 tt_int_op(-1, ==, event_add(ev_lt, NULL)); in test_edgetriggered_mix_error()
184 tt_int_op(EV_READ, ==, event_pending(ev_et, EV_READ, NULL)); in test_edgetriggered_mix_error()
185 tt_int_op(0, ==, event_pending(ev_lt, EV_READ, NULL)); in test_edgetriggered_mix_error()
187 tt_int_op(0, ==, event_del(ev_et)); in test_edgetriggered_mix_error()
189 tt_int_op(0, ==, event_add(ev_lt, NULL)); in test_edgetriggered_mix_error()
190 tt_int_op(-1, ==, event_add(ev_et, NULL)); in test_edgetriggered_mix_error()
[all …]
HDregress_dns.c155 tt_int_op(dns_ok, ==, DNS_IPv4_A); in dns_gethostbyname()
172 tt_int_op(dns_ok, ==, DNS_IPv6_AAAA); in dns_gethostbyname6()
187 tt_int_op(dns_ok, ==, DNS_PTR); in dns_gethostbyaddr()
212 tt_int_op(dns_ok, ==, DNS_PTR); in dns_resolve_reverse()
408 tt_int_op(evdns_base_count_nameservers(base), ==, 1); in dns_server()
416 tt_int_op(slen2, ==, slen); in dns_server()
417 tt_int_op(ss2.ss_family, ==, 0); in dns_server()
419 tt_int_op(slen2, ==, slen); in dns_server()
423 tt_int_op(-1, ==, slen2); in dns_server()
565 tt_int_op(r[0].type, ==, DNS_IPv4_A); in dns_search_test()
[all …]
HDregress_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()
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 …]
HDregress_listener.c99 tt_int_op(evconnlistener_get_fd(listener1), >=, 0); in regress_pick_a_port()
100 tt_int_op(evconnlistener_get_fd(listener2), >=, 0); in regress_pick_a_port()
105 tt_int_op(ss1.ss_family, ==, AF_INET); in regress_pick_a_port()
106 tt_int_op(ss2.ss_family, ==, AF_INET); in regress_pick_a_port()
110 tt_int_op(ntohl(sin1->sin_addr.s_addr), ==, 0x7f000001); in regress_pick_a_port()
111 tt_int_op(ntohl(sin2->sin_addr.s_addr), ==, 0x7f000001); in regress_pick_a_port()
112 tt_int_op(sin1->sin_port, !=, sin2->sin_port); in regress_pick_a_port()
127 tt_int_op(count1, ==, 0); in regress_pick_a_port()
128 tt_int_op(count2, ==, 0); in regress_pick_a_port()
165 tt_int_op(send(data->pair[1], "hello", 5, 0), >, 0); in regress_listener_error()
[all …]
HDregress_bufferevent.c139 tt_int_op(bufferevent_getfd(bev1), ==, -1); in test_bufferevent_impl()
146 tt_int_op(bufferevent_getfd(bev1), ==, pair[0]); in test_bufferevent_impl()
167 tt_int_op(bufferevent_get_enabled(bev1), ==, EV_WRITE); in test_bufferevent_impl()
168 tt_int_op(bufferevent_get_enabled(bev2), ==, EV_WRITE|EV_READ); in test_bufferevent_impl()
406 tt_int_op(low, ==, 0); in test_bufferevent_watermarks_impl()
408 tt_int_op(low, ==, 0); in test_bufferevent_watermarks_impl()
417 tt_int_op(low, ==, 10); in test_bufferevent_watermarks_impl()
418 tt_int_op(high, ==, 20); in test_bufferevent_watermarks_impl()
425 tt_int_op(low, ==, 100); in test_bufferevent_watermarks_impl()
426 tt_int_op(high, ==, 2000); in test_bufferevent_watermarks_impl()
[all …]
HDregress_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()
HDregress_http.c611 tt_int_op(fd, >=, 0); in http_bad_request_test()
664 tt_int_op(test_ok, ==, 2); in http_bad_request_test()
728 tt_int_op(fd, >=, 0); in http_delete_test()
751 tt_int_op(test_ok, ==, 2); in http_delete_test()
811 tt_int_op(fd, >=, 0); in http_on_complete_test()
832 tt_int_op(test_ok, ==, 4); in http_on_complete_test()
873 tt_int_op(fd1, >=, 0); in http_allowed_methods_test()
895 tt_int_op(fd2, >=, 0); in http_allowed_methods_test()
913 tt_int_op(fd3, >=, 0); in http_allowed_methods_test()
1278 tt_int_op(evhttp_make_request(evcon, req, EVHTTP_REQ_GET, "/delay"), in http_cancel_test()
[all …]
HDregress_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()
HDregress_ssl.c337 tt_int_op(bufferevent_getfd(bev1), ==, data->pair[0]); in regress_bufferevent_openssl()
443 tt_int_op(((struct sockaddr*)&ss)->sa_family, ==, AF_INET); in regress_bufferevent_openssl_connect()
444 tt_int_op(((struct sockaddr*)&ss)->sa_family, ==, AF_INET); in regress_bufferevent_openssl_connect()
HDregress_zlib.c301 tt_int_op(r, ==, Z_OK); in test_bufferevent_zlib()
304 tt_int_op(r, ==, Z_OK); in test_bufferevent_zlib()
HDregress.h121 tt_int_op(labs(timeval_msec_diff((tv1), (tv2)) - diff), <=, tolerance)
HDregress_rpc.c665 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()
HDtinytest_macros.h157 #define tt_int_op(a,op,b) \ macro