/netbsd-current/external/bsd/libevent/dist/test/ |
H A D | regress_http.c | 2413 tt_want(evhttp_add_header(&headers, "One", "Two") == 0); 2414 tt_want(evhttp_add_header(&headers, "One", "Two\r\n Three") == 0); 2415 tt_want(evhttp_add_header(&headers, "One\r", "Two") == -1); 2416 tt_want(evhttp_add_header(&headers, "One\n", "Two") == -1); 2417 tt_want(evhttp_add_header(&headers, "One", "Two\r") == -1); 2418 tt_want(evhttp_add_header(&headers, "One", "Two\n") == -1); 2429 tt_want(strcmp(real_val, value) == 0); 2443 tt_want(validate_header(&headers, "q", "test") == 0); 2448 tt_want(validate_header(&headers, "q", "test") == 0); 2449 tt_want(validate_heade [all...] |
H A D | regress_minheap.c | 50 tt_want(evutil_timercmp(&heap->p[i]->ev_timeout, 86 tt_want(evutil_timercmp(&last_e->ev_timeout,
|
H A D | regress_iocp.c | 191 tt_want(!event_iocp_shutdown_(port, 2000)); 196 tt_want(pair_is_in(&o1, 10, 100)); 197 tt_want(pair_is_in(&o1, 11, 101)); 198 tt_want(pair_is_in(&o1, 12, 102)); 199 tt_want(pair_is_in(&o1, 13, 103)); 201 tt_want(pair_is_in(&o2, 20, 200)); 202 tt_want(pair_is_in(&o2, 21, 201)); 203 tt_want(pair_is_in(&o2, 22, 202)); 204 tt_want(pair_is_in(&o2, 23, 203)); 287 tt_want(!event_iocp_shutdown [all...] |
H A D | regress_zlib.c | 334 tt_want(infilter_calls); 335 tt_want(outfilter_calls); 336 tt_want(readcb_finished); 337 tt_want(writecb_finished); 338 tt_want(!errorcb_invoked);
|
H A D | regress_bufferevent.c | 789 tt_want(!bufferevent_socket_connect(bev1, sa, sizeof(localhost))); 790 tt_want(!bufferevent_socket_connect(bev2, sa, sizeof(localhost))); 847 tt_want(r == 0 || r == -1); 915 tt_want(r == 0 || r == -1); 1053 tt_want(res1.total_calls == 2); 1054 tt_want(res1.n_read_timeouts == 1); 1055 tt_want(res1.n_write_timeouts == 1); 1056 tt_want(res2.total_calls == !(use_pair && !use_filter)); 1057 tt_want(res2.n_write_timeouts == !(use_pair && !use_filter)); 1058 tt_want(!res [all...] |
H A D | regress_testutils.c | 216 tt_want(! evdns_server_request_drop(req));
|
H A D | regress_util.c | 439 tt_want(evutil_strtoll("5000000000", NULL, 10) == 441 tt_want(evutil_strtoll("-5000000000", NULL, 10) == 444 tt_want(evutil_strtoll(s, &endptr, 10) == (ev_int64_t)99999); 445 tt_want(endptr == s+6); 446 tt_want(evutil_strtoll("foo", NULL, 10) == 0); 549 tt_want(msg);
|
H A D | tinytest_macros.h | 111 #define tt_want(b) tt_want_msg( (b), "want("#b")") macro
|
H A D | regress_buffer.c | 983 tt_want(extra == (void *)0xdeadaffe); 1754 tt_want(p == NULL); 1768 tt_want(p == NULL); 1773 tt_want(strncmp((char*)p, "ax", 2) == 0);
|
H A D | regress_dns.c | 706 tt_want(! evdns_server_request_drop(req)); 727 tt_want(! evdns_server_request_drop(req));
|
H A D | regress.c | 1488 tt_want(ev == event_base_get_running_event(base)); 3046 tt_want(check_dummy_mem_ok(mem_)); 3056 tt_want(check_dummy_mem_ok(mem_));
|
/netbsd-current/external/bsd/ntp/dist/sntp/libevent/test/ |
H A D | regress_http.c | 2113 tt_want(evhttp_add_header(&headers, "One", "Two") == 0); 2114 tt_want(evhttp_add_header(&headers, "One", "Two\r\n Three") == 0); 2115 tt_want(evhttp_add_header(&headers, "One\r", "Two") == -1); 2116 tt_want(evhttp_add_header(&headers, "One\n", "Two") == -1); 2117 tt_want(evhttp_add_header(&headers, "One", "Two\r") == -1); 2118 tt_want(evhttp_add_header(&headers, "One", "Two\n") == -1); 2129 tt_want(strcmp(real_val, value) == 0); 2143 tt_want(validate_header(&headers, "q", "test") == 0); 2148 tt_want(validate_header(&headers, "q", "test") == 0); 2149 tt_want(validate_heade [all...] |
H A D | regress_minheap.c | 51 tt_want(evutil_timercmp(&heap->p[i]->ev_timeout, 88 tt_want(evutil_timercmp(&last_e->ev_timeout,
|
H A D | regress_iocp.c | 192 tt_want(!event_iocp_shutdown_(port, 2000)); 197 tt_want(pair_is_in(&o1, 10, 100)); 198 tt_want(pair_is_in(&o1, 11, 101)); 199 tt_want(pair_is_in(&o1, 12, 102)); 200 tt_want(pair_is_in(&o1, 13, 103)); 202 tt_want(pair_is_in(&o2, 20, 200)); 203 tt_want(pair_is_in(&o2, 21, 201)); 204 tt_want(pair_is_in(&o2, 22, 202)); 205 tt_want(pair_is_in(&o2, 23, 203)); 288 tt_want(!event_iocp_shutdown [all...] |
H A D | regress_zlib.c | 333 tt_want(infilter_calls); 334 tt_want(outfilter_calls); 335 tt_want(readcb_finished); 336 tt_want(writecb_finished); 337 tt_want(!errorcb_invoked);
|
H A D | regress_bufferevent.c | 713 tt_want(!bufferevent_socket_connect(bev1, sa, sizeof(localhost))); 714 tt_want(!bufferevent_socket_connect(bev2, sa, sizeof(localhost))); 796 tt_want(r == 0 || r == -1); 947 tt_want(res1.n_read_timeouts); 948 tt_want(res1.n_write_timeouts); 949 tt_want(res1.n_read_timeouts == 1); 950 tt_want(res1.n_write_timeouts == 1); 1075 tt_want(!bufferevent_socket_connect(bev, sa, sizeof(localhost)));
|
H A D | regress_testutils.c | 201 tt_want(! evdns_server_request_drop(req));
|
H A D | regress_util.c | 373 tt_want(evutil_strtoll("5000000000", NULL, 10) == 375 tt_want(evutil_strtoll("-5000000000", NULL, 10) == 378 tt_want(evutil_strtoll(s, &endptr, 10) == (ev_int64_t)99999); 379 tt_want(endptr == s+6); 380 tt_want(evutil_strtoll("foo", NULL, 10) == 0); 483 tt_want(msg);
|
H A D | tinytest_macros.h | 111 #define tt_want(b) tt_want_msg( (b), "want("#b")") macro
|
H A D | regress_buffer.c | 578 tt_want(extra == (void *)0xdeadaffe); 1315 tt_want(p == NULL); 1329 tt_want(p == NULL); 1334 tt_want(strncmp((char*)p, "ax", 2) == 0);
|
H A D | regress_dns.c | 667 tt_want(! evdns_server_request_drop(req)); 688 tt_want(! evdns_server_request_drop(req));
|
H A D | regress.c | 1301 tt_want(ev == event_base_get_running_event(base)); 2842 tt_want(check_dummy_mem_ok(mem_)); 2852 tt_want(check_dummy_mem_ok(mem_));
|