Home
last modified time | relevance | path

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

/netbsd-src/external/bsd/libevent/dist/test/
H A Dregress_buffer.c269 tt_int_op(r, ==, 1); in test_evbuffer()
280 tt_int_op(evbuffer_commit_space(evb, v, 1), ==, 0); in test_evbuffer()
359 tt_int_op(evbuffer_get_length(src), ==, 9); in test_evbuffer_remove_buffer_with_empty2()
360 tt_int_op(evbuffer_get_length(dst), ==, 9); in test_evbuffer_remove_buffer_with_empty2()
373 tt_int_op(evbuffer_get_length(src), ==, 1); in test_evbuffer_remove_buffer_with_empty2()
374 tt_int_op(evbuffer_get_length(dst), ==, 17); in test_evbuffer_remove_buffer_with_empty2()
406 tt_int_op(evbuffer_get_length(src), ==, 6); in test_evbuffer_remove_buffer_with_empty3()
407 tt_int_op(evbuffer_get_length(dst), ==, 6); in test_evbuffer_remove_buffer_with_empty3()
420 tt_int_op(evbuffer_get_length(src), ==, 1); in test_evbuffer_remove_buffer_with_empty3()
421 tt_int_op(evbuffer_get_length(dst), ==, 11); in test_evbuffer_remove_buffer_with_empty3()
[all …]
H A Dregress_util.c365 tt_int_op(r,==,0); in regress_sockaddr_port_format()
374 tt_int_op(r,==,0); in regress_sockaddr_port_format()
461 tt_int_op(r, ==, 6); in test_evutil_snprintf()
465 tt_int_op(r, ==, 18); in test_evutil_snprintf()
469 tt_int_op(r, ==, 12); in test_evutil_snprintf()
473 tt_int_op(r, ==, 13); in test_evutil_snprintf()
478 tt_int_op(r, ==, 10); in test_evutil_snprintf()
487 tt_int_op(evutil_ascii_strcasecmp("ABC", "ABC"), ==, 0); in test_evutil_casecmp()
488 tt_int_op(evutil_ascii_strcasecmp("ABC", "abc"), ==, 0); in test_evutil_casecmp()
489 tt_int_op(evutil_ascii_strcasecmp("ABC", "abcd"), <, 0); in test_evutil_casecmp()
[all …]
H A Dregress_et.c101 tt_int_op(send(xpair[0], test, (int)strlen(test)+1, 0), >, 0); in test_edgetriggered()
102 tt_int_op(shutdown(xpair[0], EVUTIL_SHUT_WR), ==, 0); in test_edgetriggered()
112 tt_int_op(event_add(ev, NULL), ==, 0); in test_edgetriggered()
121 tt_int_op(event_base_loop(base,EVLOOP_NONBLOCK|EVLOOP_ONCE), ==, 0); in test_edgetriggered()
122 tt_int_op(event_base_loop(base,EVLOOP_NONBLOCK|EVLOOP_ONCE), ==, 0); in test_edgetriggered()
125 tt_int_op(called, ==, 1); in test_edgetriggered()
128 tt_int_op(called, ==, 2); in test_edgetriggered()
163 tt_int_op(0, ==, event_add(ev_et, NULL)); in test_edgetriggered_mix_error()
164 tt_int_op(-1, ==, event_add(ev_lt, NULL)); in test_edgetriggered_mix_error()
165 tt_int_op(EV_READ, ==, event_pending(ev_et, EV_READ, NULL)); in test_edgetriggered_mix_error()
[all …]
H A Dregress.c453 tt_int_op(got_read_on_close, ==, EV_READ); in test_simpleclose_rw()
454 tt_int_op(got_write_on_close, ==, EV_WRITE); in test_simpleclose_rw()
455 tt_int_op(premature_event, ==, 0); in test_simpleclose_rw()
519 tt_int_op(event_base_loop(base, EVLOOP_NONBLOCK), ==, !persist); in test_simpleclose()
520 tt_int_op(got_event, ==, (events & ~EV_PERSIST)); in test_simpleclose()
688 tt_int_op(count, ==, 1); in test_persistent_timeout_jump()
750 tt_int_op(res.n, ==, 3); in test_persistent_active_timeout()
751 tt_int_op(res.events[0], ==, EV_READ); in test_persistent_active_timeout()
752 tt_int_op(res.events[1], ==, EV_TIMEOUT); in test_persistent_active_timeout()
753 tt_int_op(res.events[2], ==, EV_TIMEOUT); in test_persistent_active_timeout()
[all …]
H A Dregress_finalize.c97 tt_int_op(cb_called, ==, 100); in test_fin_cb_invoked()
98 tt_int_op(ev_called, ==, 100); in test_fin_cb_invoked()
112 tt_int_op(cb_called, ==, 1); in test_fin_cb_invoked()
113 tt_int_op(ev_called, ==, 1); in test_fin_cb_invoked()
126 tt_int_op(cb_called, ==, 100); in test_fin_cb_invoked()
127 tt_int_op(ev_called, ==, 100); in test_fin_cb_invoked()
140 tt_int_op(ev_called, ==, 100); in test_fin_cb_invoked()
157 tt_int_op(ev_called, ==, 200); in test_fin_cb_invoked()
218 tt_int_op(ev_called, ==, 100); in test_fin_free_finalize()
219 tt_int_op(ev2_called, ==, 100); in test_fin_free_finalize()
[all …]
H A Dregress_dns.c168 tt_int_op(dns_ok, ==, DNS_IPv4_A); in dns_gethostbyname()
185 tt_int_op(dns_ok, ==, DNS_IPv6_AAAA); in dns_gethostbyname6()
200 tt_int_op(dns_ok, ==, DNS_PTR); in dns_gethostbyaddr()
225 tt_int_op(dns_ok, ==, DNS_PTR); in dns_resolve_reverse()
421 tt_int_op(evdns_base_count_nameservers(base), ==, 1); in dns_server()
429 tt_int_op(slen2, ==, slen); in dns_server()
430 tt_int_op(ss2.ss_family, ==, 0); in dns_server()
432 tt_int_op(slen2, ==, slen); in dns_server()
436 tt_int_op(-1, ==, slen2); in dns_server()
584 tt_int_op(r[0].type, ==, DNS_IPv4_A); in dns_search_test_impl()
[all …]
H A Dregress_listener.c111 tt_int_op(ss1.ss_family, ==, AF_INET); in regress_pick_a_port()
112 tt_int_op(ss2.ss_family, ==, AF_INET); in regress_pick_a_port()
116 tt_int_op(ntohl(sin1->sin_addr.s_addr), ==, 0x7f000001); in regress_pick_a_port()
117 tt_int_op(ntohl(sin2->sin_addr.s_addr), ==, 0x7f000001); in regress_pick_a_port()
118 tt_int_op(sin1->sin_port, !=, sin2->sin_port); in regress_pick_a_port()
133 tt_int_op(count1, ==, 0); in regress_pick_a_port()
134 tt_int_op(count2, ==, 0); in regress_pick_a_port()
171 tt_int_op(send(data->pair[1], "hello", 5, 0), >, 0); in regress_listener_error()
184 tt_int_op(count,==,1000); /* set by error cb */ in regress_listener_error()
267 tt_int_op(count, ==, 0); in regress_listener_immediate_close()
[all …]
H A Dregress_bufferevent.c185 tt_int_op(bufferevent_get_enabled(bev1), ==, EV_WRITE); in test_bufferevent_impl()
186 tt_int_op(bufferevent_get_enabled(bev2), ==, EV_WRITE|EV_READ); in test_bufferevent_impl()
193 tt_int_op(bufferevent_flush(bev1, EV_WRITE, flush), >=, 0); in test_bufferevent_impl()
436 tt_int_op(low, ==, 0); in test_bufferevent_watermarks_impl()
438 tt_int_op(low, ==, 0); in test_bufferevent_watermarks_impl()
447 tt_int_op(low, ==, 10); in test_bufferevent_watermarks_impl()
448 tt_int_op(high, ==, 20); in test_bufferevent_watermarks_impl()
455 tt_int_op(low, ==, 100); in test_bufferevent_watermarks_impl()
456 tt_int_op(high, ==, 2000); in test_bufferevent_watermarks_impl()
460 tt_int_op(r, !=, 0); in test_bufferevent_watermarks_impl()
[all …]
H A Dregress_iocp.c189 tt_int_op(count_wait_for(8, 2000), ==, 0); in test_iocp_port()
193 tt_int_op(o1.call_count, ==, 4); in test_iocp_port()
194 tt_int_op(o2.call_count, ==, 4); in test_iocp_port()
275 tt_int_op(evbuffer_get_length(buf), ==, sizeof(junk)); in test_iocp_evbuffer()
277 tt_int_op(chain->flags & EVBUFFER_MEM_PINNED_ANY, ==, 0); in test_iocp_evbuffer()
281 tt_int_op(count_wait_for(2, 2000), ==, 0); in test_iocp_evbuffer()
283 tt_int_op(evbuffer_get_length(rbuf),==,512); in test_iocp_evbuffer()
333 tt_int_op(got_readcb, ==, 1); in test_iocp_bufferevent_async()
H A Dregress_http.c546 tt_int_op(test_ok, ==, 3); in http_basic_test_impl()
567 tt_int_op(test_ok, ==, 2); in http_basic_test_impl()
589 tt_int_op(test_ok, ==, 2); in http_basic_test_impl()
762 tt_int_op(test_ok, ==, 2); in http_bad_request_test()
849 tt_int_op(test_ok, ==, 2); in http_delete_test()
930 tt_int_op(test_ok, ==, 4); in http_on_complete_test()
1357 tt_int_op(evhttp_request_get_response_code(req), !=, HTTP_OK); in http_timed_out_request_done()
1423 tt_int_op(evhttp_make_request(evcon[i], req, EVHTTP_REQ_GET, "/delay"), !=, -1); in http_fill_backlog()
1537 tt_int_op(evhttp_make_request(evcon, req, EVHTTP_REQ_GET, "/delay"), in http_cancel_test()
1549 tt_int_op(test_ok, ==, 2); /** no servers responses */ in http_cancel_test()
[all …]
H A Dregress_ssl.c307 tt_int_op(event_pending(&bev->ev_read, EVLIST_ALL, NULL), ==, 0); in bufferevent_openssl_check_freed()
308 tt_int_op(event_pending(&bev->ev_write, EVLIST_ALL, NULL), ==, 0); in bufferevent_openssl_check_freed()
540 tt_int_op(got_close, ==, 1); in regress_bufferevent_openssl()
541 tt_int_op(got_error, ==, 0); in regress_bufferevent_openssl()
543 tt_int_op(got_error, ==, 1); in regress_bufferevent_openssl()
545 tt_int_op(got_timeout, ==, 0); in regress_bufferevent_openssl()
562 tt_int_op(got_close, ==, 0); in regress_bufferevent_openssl()
563 tt_int_op(got_error, ==, 0); in regress_bufferevent_openssl()
564 tt_int_op(got_timeout, ==, 1); in regress_bufferevent_openssl()
775 tt_int_op(((struct sockaddr*)&ss)->sa_family, ==, AF_INET); in regress_bufferevent_openssl_connect()
[all …]
H A Dregress_thread.c227 tt_int_op(notification_fd_used, ==, 0); in thread_basic()
249 tt_int_op(count, ==, NUM_THREADS * NUM_ITERATIONS); in thread_basic()
340 tt_int_op(event_add(&wake_one, &tv_signal), ==, 0);
341 tt_int_op(event_add(&wake_all, &tv_broadcast), ==, 0);
353 tt_int_op(n_timed_out, >=, 1);
354 tt_int_op(n_timed_out, <=, 2);
388 tt_int_op(n_broadcast + n_signal + n_timed_out, ==, NUM_THREADS);
389 tt_int_op(n_signal, ==, 1);
H A Dregress_zlib.c304 tt_int_op(r, ==, Z_OK); in test_bufferevent_zlib()
307 tt_int_op(r, ==, Z_OK); in test_bufferevent_zlib()
H A Dregress_rpc.c668 tt_int_op(test_ok, ==, 1); in rpc_basic_client_with_pause()
669 tt_int_op(hook_pause_cb_called, ==, 4); in rpc_basic_client_with_pause()
864 tt_int_op(EVTAG_ARRAY_LEN(attack, how_often), ==, 3); in rpc_test()
H A Dregress.h125 tt_int_op(labs(timeval_msec_diff((tv1), (tv2)) - diff), <=, tolerance)
H A Dtinytest_macros.h159 #define tt_int_op(a,op,b) \ macro
/netbsd-src/external/bsd/ntp/dist/sntp/libevent/test/
H A Dregress_iocp.c190 tt_int_op(count_wait_for(8, 2000), ==, 0); in test_iocp_port()
194 tt_int_op(o1.call_count, ==, 4); in test_iocp_port()
195 tt_int_op(o2.call_count, ==, 4); in test_iocp_port()
276 tt_int_op(evbuffer_get_length(buf), ==, sizeof(junk)); in test_iocp_evbuffer()
278 tt_int_op(chain->flags & EVBUFFER_MEM_PINNED_ANY, ==, 0); in test_iocp_evbuffer()
282 tt_int_op(count_wait_for(2, 2000), ==, 0); in test_iocp_evbuffer()
284 tt_int_op(evbuffer_get_length(rbuf),==,512); in test_iocp_evbuffer()
334 tt_int_op(got_readcb, ==, 1); in test_iocp_bufferevent_async()