Home
last modified time | relevance | path

Searched refs:tt_assert (Results 1 – 18 of 18) sorted by relevance

/external/libevent/test/
Dregress_buffer.c76 tt_assert(buf->last == NULL); in evbuffer_validate_()
77 tt_assert(buf->total_len == 0); in evbuffer_validate_()
82 tt_assert(buf->last_with_datap); in evbuffer_validate_()
91 tt_assert(buf->last == chain); in evbuffer_validate_()
93 tt_assert(chain->buffer_len >= chain->misalign + chain->off); in evbuffer_validate_()
98 tt_assert(*buf->last_with_datap); in evbuffer_validate_()
103 tt_assert(chain->off == 0) in evbuffer_validate_()
104 tt_assert(chain == buf->first); in evbuffer_validate_()
105 tt_assert(buf->total_len == 0); in evbuffer_validate_()
109 tt_assert(chain->off == 0); in evbuffer_validate_()
[all …]
Dregress_iocp.c67 tt_assert(count_lock); in count_init()
68 tt_assert(count_cond); in count_init()
167 tt_assert(o1.lock); in test_iocp_port()
168 tt_assert(o2.lock); in test_iocp_port()
174 tt_assert(port); in test_iocp_port()
176 tt_assert(!event_iocp_activate_overlapped_(port, &o1.eo, 10, 100)); in test_iocp_port()
177 tt_assert(!event_iocp_activate_overlapped_(port, &o2.eo, 20, 200)); in test_iocp_port()
179 tt_assert(!event_iocp_activate_overlapped_(port, &o1.eo, 11, 101)); in test_iocp_port()
180 tt_assert(!event_iocp_activate_overlapped_(port, &o2.eo, 21, 201)); in test_iocp_port()
182 tt_assert(!event_iocp_activate_overlapped_(port, &o1.eo, 12, 102)); in test_iocp_port()
[all …]
Dregress_dns.c203 tt_assert(base); in dns_resolve_reverse()
204 tt_assert(dns); in dns_resolve_reverse()
210 tt_assert(req); in dns_resolve_reverse()
450 tt_assert(dns_got_cancel); in dns_server()
549 tt_assert(regress_dnsserver(base, &portnum, table)); in dns_search_test_impl()
553 tt_assert(!evdns_base_nameserver_ip_add(dns, buf)); in dns_search_test_impl()
642 tt_assert(request_count > 0); in search_cancel_server_cb()
643 tt_assert(!evdns_server_request_respond(req, 3)); in search_cancel_server_cb()
665 tt_assert(port); in dns_search_cancel_test()
669 tt_assert(!evdns_base_nameserver_ip_add(dns, buf)); in dns_search_cancel_test()
[all …]
Dregress_ssl.c110 tt_assert(bio); in ssl_getkey()
114 tt_assert(key); in ssl_getkey()
133 tt_assert(key); in ssl_getcert()
136 tt_assert(x509); in ssl_getcert()
137 tt_assert(0 != X509_set_version(x509, 2)); in ssl_getcert()
138 tt_assert(0 != ASN1_INTEGER_set(X509_get_serialNumber(x509), in ssl_getcert()
142 tt_assert(name); in ssl_getcert()
144 tt_assert(NID_undef != nid); in ssl_getcert()
145 tt_assert(0 != X509_NAME_add_entry_by_NID( in ssl_getcert()
156 tt_assert(0 != X509_sign(x509, key, EVP_sha1())); in ssl_getcert()
[all …]
Dregress_util.c444 tt_assert(cp); \ in test_evutil_rtrim()
566 tt_assert(logmsg != NULL); \ in test_evutil_log()
719 tt_assert(u64 / 1000000000 == 1000000000); in test_evutil_integers()
722 tt_assert(i64 / 1000000000 == -1000000000); in test_evutil_integers()
726 tt_assert(u64 > 0); in test_evutil_integers()
727 tt_assert(i64 > 0); in test_evutil_integers()
730 tt_assert(u64 == 0); in test_evutil_integers()
736 tt_assert(u32 > 0); in test_evutil_integers()
737 tt_assert(i32 > 0); in test_evutil_integers()
740 tt_assert(u32 == 0); in test_evutil_integers()
[all …]
Dregress_bufferevent.c135 tt_assert(0 == bufferevent_pair_new(NULL, 0, pair)); in test_bufferevent_impl()
403 tt_assert(0 == bufferevent_pair_new(NULL, 0, pair)); in test_bufferevent_watermarks_impl()
412 tt_assert(bev1); in test_bufferevent_watermarks_impl()
413 tt_assert(bev2); in test_bufferevent_watermarks_impl()
454 tt_assert(!event_pending(&bev2->ev_write, EV_WRITE, NULL)); in test_bufferevent_watermarks_impl()
548 tt_assert(0 == bufferevent_pair_new(NULL, 0, pair)); in test_bufferevent_filters_impl()
636 tt_assert(bev); in listen_cb()
658 tt_assert(fd >= 0); in fake_listener_create()
659 tt_assert(bind(fd, sa, slen) == 0); in fake_listener_create()
660 tt_assert(getsockname(fd, sa, &slen) == 0); in fake_listener_create()
[all …]
Dregress_http.c313 tt_assert(evhttp_connection_get_server(evcon) == arg); in http_basic_cb()
495 tt_assert(test_ok == 3); in http_basic_test_impl()
518 tt_assert(test_ok == 5); in http_basic_test_impl()
541 tt_assert(test_ok == 7); in http_basic_test_impl()
773 tt_assert(http); in http_delete_test()
983 tt_assert(result1); in http_allowed_methods_test()
984 tt_assert(!strncmp(result1, "HTTP/1.1 501 ", strlen("HTTP/1.1 501 "))); in http_allowed_methods_test()
987 tt_assert(result2); in http_allowed_methods_test()
988 tt_assert(!strncmp(result2, "HTTP/1.1 200 ", strlen("HTTP/1.1 200 "))); in http_allowed_methods_test()
991 tt_assert(result3); in http_allowed_methods_test()
[all …]
Dregress_rpc.c196 tt_assert(evcon); in rpc_basic_test()
204 tt_assert(req); in rpc_basic_test()
224 tt_assert(test_ok == 1); in rpc_basic_test()
266 tt_assert(evcon); in rpc_basic_message()
466 tt_assert(pool); in rpc_basic_client()
473 tt_assert(msg); in rpc_basic_client()
485 tt_assert(test_ok == 1); in rpc_basic_client()
494 tt_assert(test_ok == 2); in rpc_basic_client()
510 tt_assert(test_ok == 3); in rpc_basic_client()
544 tt_assert(pool); in rpc_basic_queued_client()
[all …]
Dregress_listener.c97 tt_assert(listener1); in regress_pick_a_port()
100 tt_assert(listener2); in regress_pick_a_port()
104 tt_assert(getsockname(evconnlistener_get_fd(listener1), in regress_pick_a_port()
106 tt_assert(getsockname(evconnlistener_get_fd(listener2), in regress_pick_a_port()
174 tt_assert(listener); in regress_listener_error()
178 tt_assert(listener); in regress_listener_error()
202 tt_assert(listener); in regress_listener_error_unlock()
Dregress.c551 tt_assert(event_add(&r1.ev, NULL) != -1); in test_combined()
552 tt_assert(!event_add(&w1.ev, NULL)); in test_combined()
553 tt_assert(!event_add(&r2.ev, NULL)); in test_combined()
554 tt_assert(!event_add(&w2.ev, NULL)); in test_combined()
746 tt_assert(ms_100); in test_common_timeout()
747 tt_assert(ms_200); in test_common_timeout()
748 tt_assert(sec_5); in test_common_timeout()
878 tt_assert(current_base); in test_fork()
1364 tt_assert(base1); in test_free_active_base()
1807 tt_assert((ev4.ev_flags & EVLIST_ACTIVE) != 0); in test_active_later()
[all …]
Dregress_thread.c180 tt_assert(count_lock); in thread_basic()
182 tt_assert(base); in thread_basic()
220 tt_assert(got_sigchld); in thread_basic()
311 tt_assert(cond.lock); in thread_conditions_simple()
312 tt_assert(cond.cond); in thread_conditions_simple()
355 tt_assert(i == 5 || i == 6); in thread_conditions_simple()
463 tt_assert(cfg); in thread_deferred_cb_skew()
467 tt_assert(base); in thread_deferred_cb_skew()
487 tt_assert(elapsed_usec >= 600000 && elapsed_usec <= 1400000); in thread_deferred_cb_skew()
547 tt_assert(event_base_got_break(data->base)); in thread_no_events()
Dregress_et.c137 tt_assert(was_et); in test_edgetriggered()
140 tt_assert(!was_et); in test_edgetriggered()
173 tt_assert(ev_et); in test_edgetriggered_mix_error()
175 tt_assert(ev_lt); in test_edgetriggered_mix_error()
Dregress_minheap.c71 tt_assert(min_heap_size_(&heap) == 1024); in test_heap_randomized()
78 tt_assert(min_heap_size_(&heap) == 512); in test_heap_randomized()
88 tt_assert(min_heap_size_(&heap) == 0); in test_heap_randomized()
Dregress_testutils.c174 tt_assert(! evdns_server_request_respond(req, err)); in regress_dns_server_cb()
191 tt_assert(! evdns_server_request_respond(req, err)); in regress_dns_server_cb()
210 tt_assert(! evdns_server_request_respond(req, 0)) in regress_dns_server_cb()
Dtinytest_macros.h111 #define tt_assert(b) tt_assert_msg((b), "assert("#b")") macro
Dregress_finalize.c204 tt_assert(base); in test_fin_free_finalize()
/external/libevent/
DChangeLog-2.050 o Move assignment outside tt_assert in ssl unit tests. Appeases coverity. (a2006c0)
DChangeLog1166 o Move assignment outside tt_assert in ssl unit tests. Appeases coverity. (a2006c0)