/netbsd-current/external/bsd/libevent/dist/test/ |
H A D | regress_et.c | 101 tt_int_op(send(xpair[0], test, (int)strlen(test)+1, 0), >, 0); 102 tt_int_op(shutdown(xpair[0], EVUTIL_SHUT_WR), ==, 0); 112 tt_int_op(event_add(ev, NULL), ==, 0); 121 tt_int_op(event_base_loop(base,EVLOOP_NONBLOCK|EVLOOP_ONCE), ==, 0); 122 tt_int_op(event_base_loop(base,EVLOOP_NONBLOCK|EVLOOP_ONCE), ==, 0); 125 tt_int_op(called, ==, 1); 128 tt_int_op(called, ==, 2); 163 tt_int_op(0, ==, event_add(ev_et, NULL)); 164 tt_int_op(-1, ==, event_add(ev_lt, NULL)); 165 tt_int_op(EV_REA [all...] |
H A D | regress_util.c | 365 tt_int_op(r,==,0); 374 tt_int_op(r,==,0); 461 tt_int_op(r, ==, 6); 465 tt_int_op(r, ==, 18); 469 tt_int_op(r, ==, 12); 473 tt_int_op(r, ==, 13); 478 tt_int_op(r, ==, 10); 487 tt_int_op(evutil_ascii_strcasecmp("ABC", "ABC"), ==, 0); 488 tt_int_op(evutil_ascii_strcasecmp("ABC", "abc"), ==, 0); 489 tt_int_op(evutil_ascii_strcasecm [all...] |
H A D | regress_finalize.c | 97 tt_int_op(cb_called, ==, 100); 98 tt_int_op(ev_called, ==, 100); 112 tt_int_op(cb_called, ==, 1); 113 tt_int_op(ev_called, ==, 1); 126 tt_int_op(cb_called, ==, 100); 127 tt_int_op(ev_called, ==, 100); 140 tt_int_op(ev_called, ==, 100); 157 tt_int_op(ev_called, ==, 200); 218 tt_int_op(ev_called, ==, 100); 219 tt_int_op(ev2_calle [all...] |
H A D | regress_buffer.c | 269 tt_int_op(r, ==, 1); 280 tt_int_op(evbuffer_commit_space(evb, v, 1), ==, 0); 359 tt_int_op(evbuffer_get_length(src), ==, 9); 360 tt_int_op(evbuffer_get_length(dst), ==, 9); 373 tt_int_op(evbuffer_get_length(src), ==, 1); 374 tt_int_op(evbuffer_get_length(dst), ==, 17); 406 tt_int_op(evbuffer_get_length(src), ==, 6); 407 tt_int_op(evbuffer_get_length(dst), ==, 6); 420 tt_int_op(evbuffer_get_length(src), ==, 1); 421 tt_int_op(evbuffer_get_lengt [all...] |
H A D | regress.c | 453 tt_int_op(got_read_on_close, ==, EV_READ); 454 tt_int_op(got_write_on_close, ==, EV_WRITE); 455 tt_int_op(premature_event, ==, 0); 519 tt_int_op(event_base_loop(base, EVLOOP_NONBLOCK), ==, !persist); 520 tt_int_op(got_event, ==, (events & ~EV_PERSIST)); 688 tt_int_op(count, ==, 1); 750 tt_int_op(res.n, ==, 3); 751 tt_int_op(res.events[0], ==, EV_READ); 752 tt_int_op(res.events[1], ==, EV_TIMEOUT); 753 tt_int_op(re [all...] |
H A D | regress_dns.c | 168 tt_int_op(dns_ok, ==, DNS_IPv4_A); 185 tt_int_op(dns_ok, ==, DNS_IPv6_AAAA); 200 tt_int_op(dns_ok, ==, DNS_PTR); 225 tt_int_op(dns_ok, ==, DNS_PTR); 421 tt_int_op(evdns_base_count_nameservers(base), ==, 1); 429 tt_int_op(slen2, ==, slen); 430 tt_int_op(ss2.ss_family, ==, 0); 432 tt_int_op(slen2, ==, slen); 436 tt_int_op(-1, ==, slen2); 584 tt_int_op( [all...] |
H A D | regress_listener.c | 111 tt_int_op(ss1.ss_family, ==, AF_INET); 112 tt_int_op(ss2.ss_family, ==, AF_INET); 116 tt_int_op(ntohl(sin1->sin_addr.s_addr), ==, 0x7f000001); 117 tt_int_op(ntohl(sin2->sin_addr.s_addr), ==, 0x7f000001); 118 tt_int_op(sin1->sin_port, !=, sin2->sin_port); 133 tt_int_op(count1, ==, 0); 134 tt_int_op(count2, ==, 0); 171 tt_int_op(send(data->pair[1], "hello", 5, 0), >, 0); 184 tt_int_op(count,==,1000); /* set by error cb */ 267 tt_int_op(coun [all...] |
H A D | regress_iocp.c | 189 tt_int_op(count_wait_for(8, 2000), ==, 0); 193 tt_int_op(o1.call_count, ==, 4); 194 tt_int_op(o2.call_count, ==, 4); 275 tt_int_op(evbuffer_get_length(buf), ==, sizeof(junk)); 277 tt_int_op(chain->flags & EVBUFFER_MEM_PINNED_ANY, ==, 0); 281 tt_int_op(count_wait_for(2, 2000), ==, 0); 283 tt_int_op(evbuffer_get_length(rbuf),==,512); 333 tt_int_op(got_readcb, ==, 1);
|
H A D | regress_bufferevent.c | 185 tt_int_op(bufferevent_get_enabled(bev1), ==, EV_WRITE); 186 tt_int_op(bufferevent_get_enabled(bev2), ==, EV_WRITE|EV_READ); 193 tt_int_op(bufferevent_flush(bev1, EV_WRITE, flush), >=, 0); 436 tt_int_op(low, ==, 0); 438 tt_int_op(low, ==, 0); 447 tt_int_op(low, ==, 10); 448 tt_int_op(high, ==, 20); 455 tt_int_op(low, ==, 100); 456 tt_int_op(high, ==, 2000); 460 tt_int_op( [all...] |
H A D | regress_http.c | 546 tt_int_op(test_ok, ==, 3); 567 tt_int_op(test_ok, ==, 2); 589 tt_int_op(test_ok, ==, 2); 762 tt_int_op(test_ok, ==, 2); 849 tt_int_op(test_ok, ==, 2); 930 tt_int_op(test_ok, ==, 4); 1357 tt_int_op(evhttp_request_get_response_code(req), !=, HTTP_OK); 1423 tt_int_op(evhttp_make_request(evcon[i], req, EVHTTP_REQ_GET, "/delay"), !=, -1); 1537 tt_int_op(evhttp_make_request(evcon, req, EVHTTP_REQ_GET, "/delay"), 1549 tt_int_op(test_o [all...] |
H A D | regress_ssl.c | 307 tt_int_op(event_pending(&bev->ev_read, EVLIST_ALL, NULL), ==, 0); 308 tt_int_op(event_pending(&bev->ev_write, EVLIST_ALL, NULL), ==, 0); 540 tt_int_op(got_close, ==, 1); 541 tt_int_op(got_error, ==, 0); 543 tt_int_op(got_error, ==, 1); 545 tt_int_op(got_timeout, ==, 0); 562 tt_int_op(got_close, ==, 0); 563 tt_int_op(got_error, ==, 0); 564 tt_int_op(got_timeout, ==, 1); 775 tt_int_op(((struc [all...] |
H A D | regress_thread.c | 227 tt_int_op(notification_fd_used, ==, 0); 249 tt_int_op(count, ==, NUM_THREADS * NUM_ITERATIONS); 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 D | regress.h | 125 tt_int_op(labs(timeval_msec_diff((tv1), (tv2)) - diff), <=, tolerance)
|
/netbsd-current/external/bsd/ntp/dist/sntp/libevent/test/ |
H A D | regress_et.c | 109 tt_int_op(send(pair[0], test, (int)strlen(test)+1, 0), >, 0); 142 tt_int_op(called, ==, 1); 145 tt_int_op(called, ==, 2); 184 tt_int_op(0, ==, event_add(ev_et, NULL)); 185 tt_int_op(-1, ==, event_add(ev_lt, NULL)); 186 tt_int_op(EV_READ, ==, event_pending(ev_et, EV_READ, NULL)); 187 tt_int_op(0, ==, event_pending(ev_lt, EV_READ, NULL)); 189 tt_int_op(0, ==, event_del(ev_et)); 191 tt_int_op(0, ==, event_add(ev_lt, NULL)); 192 tt_int_op( [all...] |
H A D | regress_listener.c | 101 tt_int_op(evconnlistener_get_fd(listener1), >=, 0); 102 tt_int_op(evconnlistener_get_fd(listener2), >=, 0); 107 tt_int_op(ss1.ss_family, ==, AF_INET); 108 tt_int_op(ss2.ss_family, ==, AF_INET); 112 tt_int_op(ntohl(sin1->sin_addr.s_addr), ==, 0x7f000001); 113 tt_int_op(ntohl(sin2->sin_addr.s_addr), ==, 0x7f000001); 114 tt_int_op(sin1->sin_port, !=, sin2->sin_port); 129 tt_int_op(count1, ==, 0); 130 tt_int_op(count2, ==, 0); 167 tt_int_op(sen [all...] |
H A D | regress_buffer.c | 265 tt_int_op(r, ==, 1); 276 tt_int_op(evbuffer_commit_space(evb, v, 1), ==, 0); 340 tt_int_op(n, ==, 1); 341 tt_int_op(evbuffer_get_length(buf), ==, 0); 343 tt_int_op(v[0].iov_len, >=, 1024); 349 tt_int_op(0, ==, evbuffer_commit_space(buf, v, 1)); 350 tt_int_op(evbuffer_get_length(buf), ==, 512); 356 tt_int_op(n, ==, 1); 358 tt_int_op(remaining, ==, v[0].iov_len); 361 tt_int_op( [all...] |
H A D | regress_util.c | 299 tt_int_op(r,==,0); 308 tt_int_op(r,==,0); 395 tt_int_op(r, ==, 6); 399 tt_int_op(r, ==, 18); 403 tt_int_op(r, ==, 12); 407 tt_int_op(r, ==, 13); 412 tt_int_op(r, ==, 10); 421 tt_int_op(evutil_ascii_strcasecmp("ABC", "ABC"), ==, 0); 422 tt_int_op(evutil_ascii_strcasecmp("ABC", "abc"), ==, 0); 423 tt_int_op(evutil_ascii_strcasecm [all...] |
H A D | regress_finalize.c | 96 tt_int_op(cb_called, ==, 100); 97 tt_int_op(ev_called, ==, 100); 111 tt_int_op(cb_called, ==, 1); 112 tt_int_op(ev_called, ==, 1); 125 tt_int_op(cb_called, ==, 100); 126 tt_int_op(ev_called, ==, 100); 139 tt_int_op(ev_called, ==, 100); 156 tt_int_op(ev_called, ==, 200); 217 tt_int_op(ev_called, ==, 100); 218 tt_int_op(ev2_calle [all...] |
H A D | regress_dns.c | 157 tt_int_op(dns_ok, ==, DNS_IPv4_A); 174 tt_int_op(dns_ok, ==, DNS_IPv6_AAAA); 189 tt_int_op(dns_ok, ==, DNS_PTR); 214 tt_int_op(dns_ok, ==, DNS_PTR); 410 tt_int_op(evdns_base_count_nameservers(base), ==, 1); 418 tt_int_op(slen2, ==, slen); 419 tt_int_op(ss2.ss_family, ==, 0); 421 tt_int_op(slen2, ==, slen); 425 tt_int_op(-1, ==, slen2); 567 tt_int_op( [all...] |
H A D | regress.c | 453 tt_int_op(got_read_on_close, ==, EV_READ); 454 tt_int_op(got_write_on_close, ==, EV_WRITE); 455 tt_int_op(premature_event, ==, 0); 638 tt_int_op(count, ==, 1); 700 tt_int_op(res.n, ==, 3); 701 tt_int_op(res.events[0], ==, EV_READ); 702 tt_int_op(res.events[1], ==, EV_TIMEOUT); 703 tt_int_op(res.events[2], ==, EV_TIMEOUT); 755 tt_int_op(ms_100->tv_sec, ==, 0); 756 tt_int_op(ms_20 [all...] |
H A D | regress_iocp.c | 190 tt_int_op(count_wait_for(8, 2000), ==, 0); 194 tt_int_op(o1.call_count, ==, 4); 195 tt_int_op(o2.call_count, ==, 4); 276 tt_int_op(evbuffer_get_length(buf), ==, sizeof(junk)); 278 tt_int_op(chain->flags & EVBUFFER_MEM_PINNED_ANY, ==, 0); 282 tt_int_op(count_wait_for(2, 2000), ==, 0); 284 tt_int_op(evbuffer_get_length(rbuf),==,512); 334 tt_int_op(got_readcb, ==, 1);
|
H A D | regress_bufferevent.c | 141 tt_int_op(bufferevent_getfd(bev1), ==, -1); 148 tt_int_op(bufferevent_getfd(bev1), ==, pair[0]); 169 tt_int_op(bufferevent_get_enabled(bev1), ==, EV_WRITE); 170 tt_int_op(bufferevent_get_enabled(bev2), ==, EV_WRITE|EV_READ); 408 tt_int_op(low, ==, 0); 410 tt_int_op(low, ==, 0); 419 tt_int_op(low, ==, 10); 420 tt_int_op(high, ==, 20); 427 tt_int_op(low, ==, 100); 428 tt_int_op(hig [all...] |
H A D | regress_http.c | 613 tt_int_op(fd, >=, 0); 666 tt_int_op(test_ok, ==, 2); 730 tt_int_op(fd, >=, 0); 753 tt_int_op(test_ok, ==, 2); 813 tt_int_op(fd, >=, 0); 834 tt_int_op(test_ok, ==, 4); 875 tt_int_op(fd1, >=, 0); 897 tt_int_op(fd2, >=, 0); 915 tt_int_op(fd3, >=, 0); 1280 tt_int_op(evhttp_make_reques [all...] |
H A D | regress_thread.c | 223 tt_int_op(notification_fd_used, ==, 0); 245 tt_int_op(count, ==, NUM_THREADS * NUM_ITERATIONS); 335 tt_int_op(event_add(&wake_one, &tv_signal), ==, 0); 336 tt_int_op(event_add(&wake_all, &tv_broadcast), ==, 0); 348 tt_int_op(n_timed_out, >=, 1); 349 tt_int_op(n_timed_out, <=, 2); 383 tt_int_op(n_broadcast + n_signal + n_timed_out, ==, NUM_THREADS); 384 tt_int_op(n_signal, ==, 1);
|
H A D | regress.h | 123 tt_int_op(labs(timeval_msec_diff((tv1), (tv2)) - diff), <=, tolerance)
|