/external/libevent/test/ |
D | regress_buffer.c | 76 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 …]
|
D | regress_iocp.c | 67 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 …]
|
D | regress_dns.c | 203 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 …]
|
D | regress_ssl.c | 110 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 …]
|
D | regress_util.c | 444 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 …]
|
D | regress_bufferevent.c | 135 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 …]
|
D | regress_http.c | 313 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 …]
|
D | regress_rpc.c | 196 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 …]
|
D | regress_listener.c | 97 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()
|
D | regress.c | 551 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 …]
|
D | regress_thread.c | 180 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()
|
D | regress_et.c | 137 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()
|
D | regress_minheap.c | 71 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()
|
D | regress_testutils.c | 174 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()
|
D | tinytest_macros.h | 111 #define tt_assert(b) tt_assert_msg((b), "assert("#b")") macro
|
D | regress_finalize.c | 204 tt_assert(base); in test_fin_free_finalize()
|
/external/libevent/ |
D | ChangeLog-2.0 | 50 o Move assignment outside tt_assert in ssl unit tests. Appeases coverity. (a2006c0)
|
D | ChangeLog | 1166 o Move assignment outside tt_assert in ssl unit tests. Appeases coverity. (a2006c0)
|