Wait-for-the-asserted-state (bounded) for REACH assertions only: reaching * a count is safe to wait for, because #937 guarantees an unchanged dirty * tree never increments — extra polls cannot overshoot a correct * implementation. NEVER use this for must-stay-quiet assertions; those are * genuinely about a fixed number of polls. */
| 343 | * implementation. NEVER use this for must-stay-quiet assertions; those are |
| 344 | * genuinely about a fixed number of polls. */ |
| 345 | static int wt_poll_until_count(cbm_watcher_t *w, const char *project, int expected, int max_polls) { |
| 346 | for (int i = 0; i < max_polls && index_call_count < expected; i++) { |
| 347 | cbm_watcher_touch(w, project); |
| 348 | cbm_watcher_poll_once(w); |
| 349 | } |
| 350 | return index_call_count; |
| 351 | } |
| 352 | |
| 353 | TEST(watcher_poll_no_projects) { |
| 354 | cbm_store_t *store = cbm_store_open_memory(); |
no test coverage detected