Skip to content

0.3.1

Latest

Choose a tag to compare

@tmattio tmattio released this 01 Nov 17:38
· 23 commits to main since this release

CHANGES:

Windtrap 0.3.1 fixes two bugs that failed tests that were not at fault:
a test that timed out could leave a mutex locked for every later test in
its worker, and stateful ~domains ran about sixty times slower when
its workers shared a processor, enough to reach a test's limit.

Stateful testing

  • stateful ~domains no longer spins for a time slice per run when its
    workers share a processor, as on a loaded machine or under taskset:
    a worker that waits for another at the start of a run sleeps after a
    short spin, and a 50-case test of a counter on one core takes 0.11 s
    instead of 6.8 s.

Running tests

  • A test that timed out no longer fails the tests after it in its
    worker: it retires the worker, as a test that spawns a domain does,
    so a mutex it held when its timeout stopped it is not still locked
    in the next test. The documentation of timeouts says where the
    timeout's exception can arrive and that the limit is wall-clock time.