periodic_starvation_gate

Function periodic_starvation_gate 

Source
pub fn periodic_starvation_gate(
    result: &VmResult,
    min_real: usize,
) -> Result<()>
Expand description

Periodic-capture starvation gate for capture-requiring post_vm assertions: starved_below_minimum_skip keyed on the bridge’s REAL (non-placeholder) capture count vs the test’s stated minimum. Call at the TOP of a post_vm callback with the same minimum its assertions enforce: periodic_starvation_gate(result, 2)?;. Tests whose assertions key on a narrower data-bearing count (e.g. “N captures carrying per-cgroup PSI”) should ALSO call starved_below_minimum_skip with that count at the assertion site. No-op when the entry configured no periodic captures.