Lines Matching refs:expected_pops
211 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()
313 if (pops > expected_pops + (expected_pops / 20) || in test_repeating_kevent()
314 pops < expected_pops - (expected_pops / 20)) { in test_repeating_kevent()
315 T_FAIL("%s() usec:%d (saw %lld of %lld expected pops)", __func__, usec, pops, expected_pops); in test_repeating_kevent()