/external/libevent/test/ |
D | regress_buffer.c | 78 tt_assert(buf->last == NULL); in evbuffer_validate_() 79 tt_assert(buf->total_len == 0); in evbuffer_validate_() 84 tt_assert(buf->last_with_datap); in evbuffer_validate_() 93 tt_assert(buf->last == chain); in evbuffer_validate_() 95 tt_assert(chain->buffer_len >= chain->misalign + chain->off); in evbuffer_validate_() 100 tt_assert(*buf->last_with_datap); in evbuffer_validate_() 105 tt_assert(chain->off == 0) in evbuffer_validate_() 106 tt_assert(chain == buf->first); in evbuffer_validate_() 107 tt_assert(buf->total_len == 0); in evbuffer_validate_() 111 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 | 210 tt_assert(base); in dns_resolve_reverse() 211 tt_assert(dns); in dns_resolve_reverse() 217 tt_assert(req); in dns_resolve_reverse() 457 tt_assert(dns_got_cancel); in dns_server() 556 tt_assert(regress_dnsserver(base, &portnum, table)); in dns_search_test_impl() 560 tt_assert(!evdns_base_nameserver_ip_add(dns, buf)); in dns_search_test_impl() 641 tt_assert(request_count > 0); in search_cancel_server_cb() 642 tt_assert(!evdns_server_request_respond(req, 3)); in search_cancel_server_cb() 664 tt_assert(port); in dns_search_cancel_test() 668 tt_assert(!evdns_base_nameserver_ip_add(dns, buf)); in dns_search_cancel_test() [all …]
|
D | regress_ssl.c | 109 tt_assert(bio); in ssl_getkey() 113 tt_assert(key); in ssl_getkey() 131 tt_assert(key); in ssl_getcert() 134 tt_assert(x509); in ssl_getcert() 135 tt_assert(0 != X509_set_version(x509, 2)); in ssl_getcert() 136 tt_assert(0 != ASN1_INTEGER_set(X509_get_serialNumber(x509), in ssl_getcert() 140 tt_assert(name); in ssl_getcert() 142 tt_assert(NID_undef != nid); in ssl_getcert() 143 tt_assert(0 != X509_NAME_add_entry_by_NID( in ssl_getcert() 155 tt_assert(0 != X509_sign(x509, key, EVP_sha1())); in ssl_getcert() [all …]
|
D | regress_util.c | 507 tt_assert(cp); \ in test_evutil_rtrim() 629 tt_assert(logmsg != NULL); \ in test_evutil_log() 782 tt_assert(u64 / 1000000000 == 1000000000); in test_evutil_integers() 785 tt_assert(i64 / 1000000000 == -1000000000); in test_evutil_integers() 789 tt_assert(u64 > 0); in test_evutil_integers() 790 tt_assert(i64 > 0); in test_evutil_integers() 793 tt_assert(u64 == 0); in test_evutil_integers() 799 tt_assert(u32 > 0); in test_evutil_integers() 800 tt_assert(i32 > 0); in test_evutil_integers() 803 tt_assert(u32 == 0); in test_evutil_integers() [all …]
|
D | regress_listener.c | 98 tt_assert(listener1); in regress_pick_a_port() 101 tt_assert(listener2); in regress_pick_a_port() 103 tt_assert(evconnlistener_get_fd(listener1) != EVUTIL_INVALID_SOCKET); in regress_pick_a_port() 104 tt_assert(evconnlistener_get_fd(listener2) != EVUTIL_INVALID_SOCKET); in regress_pick_a_port() 105 tt_assert(getsockname(evconnlistener_get_fd(listener1), in regress_pick_a_port() 107 tt_assert(getsockname(evconnlistener_get_fd(listener2), in regress_pick_a_port() 175 tt_assert(listener); in regress_listener_error() 179 tt_assert(listener); in regress_listener_error() 222 tt_assert(listener); in regress_listener_close_accepted_fd() 224 tt_assert(getsockname(evconnlistener_get_fd(listener), in regress_listener_close_accepted_fd() [all …]
|
D | regress_http.c | 327 tt_assert(evhttp_connection_get_server(evcon) == arg); in http_basic_cb() 334 tt_assert(sa); in http_basic_cb() 338 tt_assert(!strncmp(addrbuf, "127.0.0.1:", strlen("127.0.0.1:"))); in http_basic_cb() 341 tt_assert(!strncmp(addrbuf, "[::1]:", strlen("[::1]:"))); in http_basic_cb() 703 tt_assert(fd != EVUTIL_INVALID_SOCKET); in http_bad_request_test() 735 tt_assert(fd != EVUTIL_INVALID_SOCKET); in http_bad_request_test() 819 tt_assert(http); in http_delete_test() 821 tt_assert(fd != EVUTIL_INVALID_SOCKET); in http_delete_test() 904 tt_assert(fd != EVUTIL_INVALID_SOCKET); in http_on_complete_test() 965 tt_assert(fd1 != EVUTIL_INVALID_SOCKET); in http_allowed_methods_test() [all …]
|
D | regress_rpc.c | 195 tt_assert(evcon); in rpc_basic_test() 203 tt_assert(req); in rpc_basic_test() 223 tt_assert(test_ok == 1); in rpc_basic_test() 265 tt_assert(evcon); in rpc_basic_message() 465 tt_assert(pool); in rpc_basic_client() 472 tt_assert(msg); in rpc_basic_client() 484 tt_assert(test_ok == 1); in rpc_basic_client() 493 tt_assert(test_ok == 2); in rpc_basic_client() 509 tt_assert(test_ok == 3); in rpc_basic_client() 543 tt_assert(pool); in rpc_basic_queued_client() [all …]
|
D | regress_et.c | 107 tt_assert(ev != NULL); in test_edgetriggered() 122 tt_assert(was_et); in test_edgetriggered() 125 tt_assert(!was_et); in test_edgetriggered() 154 tt_assert(ev_et); in test_edgetriggered_mix_error() 156 tt_assert(ev_lt); in test_edgetriggered_mix_error() 237 tt_assert(last_read_notification_was_et); in test_edge_triggered_multiple_events() 239 tt_assert(last_write_notification_was_et); in test_edge_triggered_multiple_events() 252 tt_assert(last_write_notification_was_et); in test_edge_triggered_multiple_events()
|
D | regress_bufferevent.c | 148 tt_assert(0 == bufferevent_pair_new(NULL, 0, pair)); in test_bufferevent_impl() 416 tt_assert(0 == bufferevent_pair_new(NULL, 0, pair)); in test_bufferevent_watermarks_impl() 425 tt_assert(bev1); in test_bufferevent_watermarks_impl() 426 tt_assert(bev2); in test_bufferevent_watermarks_impl() 467 tt_assert(!event_pending(&bev2->ev_write, EV_WRITE, NULL)); in test_bufferevent_watermarks_impl() 561 tt_assert(0 == bufferevent_pair_new(NULL, 0, pair)); in test_bufferevent_filters_impl() 649 tt_assert(bev); in listen_cb() 671 tt_assert(fd >= 0); in fake_listener_create() 672 tt_assert(bind(fd, sa, slen) == 0); in fake_listener_create() 673 tt_assert(getsockname(fd, sa, &slen) == 0); in fake_listener_create() [all …]
|
D | regress.c | 493 tt_assert(ev); in test_simpleclose() 494 tt_assert(!event_add(ev, NULL)); in test_simpleclose() 498 tt_assert(!evutil_closesocket(pair[1])); in test_simpleclose() 502 tt_assert(!shutdown(pair[1], EVUTIL_SHUT_WR)); in test_simpleclose() 512 tt_assert(!event_base_loopexit(base, &tv)); in test_simpleclose() 599 tt_assert(event_add(&r1.ev, NULL) != -1); in test_combined() 600 tt_assert(!event_add(&w1.ev, NULL)); in test_combined() 601 tt_assert(!event_add(&r2.ev, NULL)); in test_combined() 602 tt_assert(!event_add(&w2.ev, NULL)); in test_combined() 794 tt_assert(ms_100); in test_common_timeout() [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_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 | 1479 o Move assignment outside tt_assert in ssl unit tests. Appeases coverity. (a2006c0)
|