Files
vectorcraft/crates/plugins/tests
dotCooCoo a93ba163b6 Plug-ins: hostile, time budget and cancel tests check errors, not elapsed time
Three tests in crates/plugins/tests/abi.rs passed or failed on how long a
run took (under 5 s or 3 s), so a slow or loaded runner could fail them and
a fast one could hide a run stopped by the wrong limit.

- hostile_modules_fail_within_their_budget (was _fail_quickly) checks each
  module's error. The endless ones must end with the instruction budget, so
  a run stopped by the 60 s time budget fails the test.
- wall_clock_budget_stops_runaway_plugins gives an endless loop two slices
  of instructions: with a time budget of 0 it ends with the time budget at
  the end of the first slice, and with the default one it ends with the
  instruction budget.
- cancelling_stops_a_run_between_two_slices_of_its_budget gives the loop
  two slices: cancelled, it comes back Cancelled; not cancelled, the same
  plug-in ends with the instruction budget.

Each test fails when its check in Plugin::call_with is removed.
2026-11-27 16:25:42 -08:00
..