/freebsd-11-stable/contrib/ntp/sntp/libevent/test/ |
H A D | regress_et.c | 107 tt_int_op(send(pair[0], test, (int)strlen(test)+1, 0), >, 0); 140 tt_int_op(called, ==, 1); 143 tt_int_op(called, ==, 2); 182 tt_int_op(0, ==, event_add(ev_et, NULL)); 183 tt_int_op(-1, ==, event_add(ev_lt, NULL)); 184 tt_int_op(EV_READ, ==, event_pending(ev_et, EV_READ, NULL)); 185 tt_int_op(0, ==, event_pending(ev_lt, EV_READ, NULL)); 187 tt_int_op(0, ==, event_del(ev_et)); 189 tt_int_op(0, ==, event_add(ev_lt, NULL)); 190 tt_int_op( [all...] |
H A D | regress_listener.c | 99 tt_int_op(evconnlistener_get_fd(listener1), >=, 0); 100 tt_int_op(evconnlistener_get_fd(listener2), >=, 0); 105 tt_int_op(ss1.ss_family, ==, AF_INET); 106 tt_int_op(ss2.ss_family, ==, AF_INET); 110 tt_int_op(ntohl(sin1->sin_addr.s_addr), ==, 0x7f000001); 111 tt_int_op(ntohl(sin2->sin_addr.s_addr), ==, 0x7f000001); 112 tt_int_op(sin1->sin_port, !=, sin2->sin_port); 127 tt_int_op(count1, ==, 0); 128 tt_int_op(count2, ==, 0); 165 tt_int_op(sen [all...] |
H A D | regress_buffer.c | 263 tt_int_op(r, ==, 1); 274 tt_int_op(evbuffer_commit_space(evb, v, 1), ==, 0); 338 tt_int_op(n, ==, 1); 339 tt_int_op(evbuffer_get_length(buf), ==, 0); 341 tt_int_op(v[0].iov_len, >=, 1024); 347 tt_int_op(0, ==, evbuffer_commit_space(buf, v, 1)); 348 tt_int_op(evbuffer_get_length(buf), ==, 512); 354 tt_int_op(n, ==, 1); 356 tt_int_op(remaining, ==, v[0].iov_len); 359 tt_int_op( [all...] |
H A D | regress_util.c | 297 tt_int_op(r,==,0); 306 tt_int_op(r,==,0); 393 tt_int_op(r, ==, 6); 397 tt_int_op(r, ==, 18); 401 tt_int_op(r, ==, 12); 405 tt_int_op(r, ==, 13); 410 tt_int_op(r, ==, 10); 419 tt_int_op(evutil_ascii_strcasecmp("ABC", "ABC"), ==, 0); 420 tt_int_op(evutil_ascii_strcasecmp("ABC", "abc"), ==, 0); 421 tt_int_op(evutil_ascii_strcasecm [all...] |
H A D | regress_finalize.c | 94 tt_int_op(cb_called, ==, 100); 95 tt_int_op(ev_called, ==, 100); 109 tt_int_op(cb_called, ==, 1); 110 tt_int_op(ev_called, ==, 1); 123 tt_int_op(cb_called, ==, 100); 124 tt_int_op(ev_called, ==, 100); 137 tt_int_op(ev_called, ==, 100); 154 tt_int_op(ev_called, ==, 200); 215 tt_int_op(ev_called, ==, 100); 216 tt_int_op(ev2_calle [all...] |
H A D | regress_dns.c | 155 tt_int_op(dns_ok, ==, DNS_IPv4_A); 172 tt_int_op(dns_ok, ==, DNS_IPv6_AAAA); 187 tt_int_op(dns_ok, ==, DNS_PTR); 212 tt_int_op(dns_ok, ==, DNS_PTR); 408 tt_int_op(evdns_base_count_nameservers(base), ==, 1); 416 tt_int_op(slen2, ==, slen); 417 tt_int_op(ss2.ss_family, ==, 0); 419 tt_int_op(slen2, ==, slen); 423 tt_int_op(-1, ==, slen2); 565 tt_int_op( [all...] |
H A D | regress.c | 451 tt_int_op(got_read_on_close, ==, EV_READ); 452 tt_int_op(got_write_on_close, ==, EV_WRITE); 453 tt_int_op(premature_event, ==, 0); 636 tt_int_op(count, ==, 1); 698 tt_int_op(res.n, ==, 3); 699 tt_int_op(res.events[0], ==, EV_READ); 700 tt_int_op(res.events[1], ==, EV_TIMEOUT); 701 tt_int_op(res.events[2], ==, EV_TIMEOUT); 753 tt_int_op(ms_100->tv_sec, ==, 0); 754 tt_int_op(ms_20 [all...] |
H A D | regress_iocp.c | 188 tt_int_op(count_wait_for(8, 2000), ==, 0); 192 tt_int_op(o1.call_count, ==, 4); 193 tt_int_op(o2.call_count, ==, 4); 274 tt_int_op(evbuffer_get_length(buf), ==, sizeof(junk)); 276 tt_int_op(chain->flags & EVBUFFER_MEM_PINNED_ANY, ==, 0); 280 tt_int_op(count_wait_for(2, 2000), ==, 0); 282 tt_int_op(evbuffer_get_length(rbuf),==,512); 332 tt_int_op(got_readcb, ==, 1);
|
H A D | regress_bufferevent.c | 139 tt_int_op(bufferevent_getfd(bev1), ==, -1); 146 tt_int_op(bufferevent_getfd(bev1), ==, pair[0]); 167 tt_int_op(bufferevent_get_enabled(bev1), ==, EV_WRITE); 168 tt_int_op(bufferevent_get_enabled(bev2), ==, EV_WRITE|EV_READ); 406 tt_int_op(low, ==, 0); 408 tt_int_op(low, ==, 0); 417 tt_int_op(low, ==, 10); 418 tt_int_op(high, ==, 20); 425 tt_int_op(low, ==, 100); 426 tt_int_op(hig [all...] |
H A D | regress_http.c | 611 tt_int_op(fd, >=, 0); 664 tt_int_op(test_ok, ==, 2); 728 tt_int_op(fd, >=, 0); 751 tt_int_op(test_ok, ==, 2); 811 tt_int_op(fd, >=, 0); 832 tt_int_op(test_ok, ==, 4); 873 tt_int_op(fd1, >=, 0); 895 tt_int_op(fd2, >=, 0); 913 tt_int_op(fd3, >=, 0); 1278 tt_int_op(evhttp_make_reques [all...] |
H A D | regress_thread.c | 221 tt_int_op(notification_fd_used, ==, 0); 243 tt_int_op(count, ==, NUM_THREADS * NUM_ITERATIONS); 333 tt_int_op(event_add(&wake_one, &tv_signal), ==, 0); 334 tt_int_op(event_add(&wake_all, &tv_broadcast), ==, 0); 346 tt_int_op(n_timed_out, >=, 1); 347 tt_int_op(n_timed_out, <=, 2); 381 tt_int_op(n_broadcast + n_signal + n_timed_out, ==, NUM_THREADS); 382 tt_int_op(n_signal, ==, 1);
|
H A D | regress.h | 121 tt_int_op(labs(timeval_msec_diff((tv1), (tv2)) - diff), <=, tolerance)
|
H A D | regress_zlib.c | 301 tt_int_op(r, ==, Z_OK); 304 tt_int_op(r, ==, Z_OK);
|
H A D | regress_ssl.c | 351 tt_int_op(bufferevent_getfd(bev1), ==, data->pair[0]); 382 tt_int_op(got_close, ==, 1); 383 tt_int_op(got_error, ==, 0); 457 tt_int_op(((struct sockaddr*)&ss)->sa_family, ==, AF_INET); 458 tt_int_op(((struct sockaddr*)&ss)->sa_family, ==, AF_INET);
|
H A D | regress_rpc.c | 665 tt_int_op(test_ok, ==, 1); 666 tt_int_op(hook_pause_cb_called, ==, 4); 861 tt_int_op(EVTAG_ARRAY_LEN(attack, how_often), ==, 3);
|
H A D | tinytest_macros.h | 157 #define tt_int_op(a,op,b) \ macro
|