Lines Matching refs:ATF_REQUIRE
93 ATF_REQUIRE((kq = kqueue()) >= 0);
98 ATF_REQUIRE(kevent(kq, event, 2, NULL, 0, NULL) == 0);
99 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ots) == 0);
102 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, NULL) == 1);
103 ATF_REQUIRE(event[0].filter == EVFILT_TIMER);
104 ATF_REQUIRE(event[0].ident == 1 ||
107 ATF_REQUIRE(ntimer1 < TIME1_COUNT);
113 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC,
116 ATF_REQUIRE(check_timespec(&ts,
120 ATF_REQUIRE(kevent(kq, event, 1, NULL, 0,
124 ATF_REQUIRE(ntimer1 == TIME1_COUNT);
125 ATF_REQUIRE(ntimer2 == 0);
131 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC,
134 ATF_REQUIRE(check_timespec(&ts, TIME2_TOTAL_SEC));
147 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ots) == 0);
150 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 0);
151 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts) == 0);
153 ATF_REQUIRE(check_timespec(&ts, TIME2_TOTAL_SEC));
170 ATF_REQUIRE((kq = kqueue()) >= 0);
173 ATF_REQUIRE(kevent(kq, event, 1, NULL, 0, NULL) == 0);
178 ATF_REQUIRE(nanosleep(&sleepts, NULL) == 0);
180 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 1);
181 ATF_REQUIRE(event[0].ident == 1);
182 ATF_REQUIRE(event[0].data == TIME1_COUNT ||
200 ATF_REQUIRE((kq = kqueue()) >= 0);
207 ATF_REQUIRE(kevent(kq, event, 1, NULL, 0, NULL) == 0);
211 ATF_REQUIRE(nanosleep(&sleepts, NULL) == 0);
213 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 1);
214 ATF_REQUIRE(event[0].ident == 1);
215 ATF_REQUIRE(event[0].data >= 9 && event[0].data <= 11);
222 ATF_REQUIRE(kevent(kq, event, 1, NULL, 0, NULL) == 0);
228 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 0);
232 ATF_REQUIRE(nanosleep(&sleepts, NULL) == 0);
234 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 1);
235 ATF_REQUIRE(event[0].ident == 1);
236 ATF_REQUIRE(event[0].data == 1);
242 ATF_REQUIRE(kevent(kq, event, 1, NULL, 0, NULL) == 0);
246 ATF_REQUIRE(nanosleep(&sleepts, NULL) == 0);
252 ATF_REQUIRE(kevent(kq, event, 1, NULL, 0, NULL) == 0);
256 ATF_REQUIRE(nanosleep(&sleepts, NULL) == 0);
263 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 1);
264 ATF_REQUIRE(event[0].ident == 1);
265 ATF_REQUIRE(event[0].data >= 3 && event[0].data <= 5);
282 ATF_REQUIRE((kq = kqueue()) >= 0);
284 ATF_REQUIRE(clock_gettime(CLOCK_REALTIME, &ots) == 0);
285 ATF_REQUIRE(ots.tv_sec < INTPTR_MAX - TIME1_TOTAL_SEC);
291 ATF_REQUIRE(kevent(kq, event, 1, event, 1, NULL) == 1);
293 ATF_REQUIRE(clock_gettime(CLOCK_REALTIME, &ts) == 0);
300 ATF_REQUIRE(check_timespec(&ts, 4) || check_timespec(&ts, 5));
304 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 1);
316 ATF_REQUIRE((kq = kqueue()) >= 0);
321 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ots) == 0);
322 ATF_REQUIRE(kevent(kq, event, 1, event, 1, NULL) == 1);
323 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts) == 0);