Home
last modified time | relevance | path

Searched refs:expected_pops (Results 1 – 2 of 2) sorted by relevance

/xnu-8020.140.41/tests/
H A Dkqueue_timer_tests.c211 uint64_t expected_pops; in test_interval_kevent() local
214 expected_pops = 1; /* TODO: test 'and only once' */ in test_interval_kevent()
216 expected_pops = test_duration_us / (uint64_t)usec; in test_interval_kevent()
220 usec, expected_pops); in test_interval_kevent()
239 for (uint32_t i = 0; i < expected_pops; i++) { in test_interval_kevent()
260 if (pops > expected_pops + (expected_pops / 20) || in test_interval_kevent()
261 pops < expected_pops - (expected_pops / 20)) { in test_interval_kevent()
262 T_FAIL("%s() usec:%d (saw %lld of %lld expected pops)", __func__, usec, pops, expected_pops); in test_interval_kevent()
287 uint64_t expected_pops = test_duration_us / (uint64_t)usec; in test_repeating_kevent() local
289 usec, expected_pops); in test_repeating_kevent()
[all …]
H A Dkevent_continuous_time.c265 uint64_t expected_pops = ms_elapsed / 100; variable
268 T_ASSERT_GE(got_pops, expected_pops - 1, "tracking pops while asleep");