Files
reims-vgpu/docs
Anees Iqbal 0c4b03013e ✅ Wait for a test's thread on the clock, not a sleep
A test that slept 20 ms for its waiter to reach a wait on the virtual clock
hung on the Windows mini (p89, m3-max-85598): the waiter began after the test
had begun a walk it must not count, and waited for that walk, which the test
ends only after the join. Where a late thread misses a check instead, the test
passed without testing anything.

The testkit's clock now counts the timed waits made on it and the timeouts an
advance delivers, and waits for a count (VirtualClock::timed_waits, timeouts,
wait_for_timed_waits); the testkit's settle counts its own waits
(World::settle_waits). The walks tests, the platform's settle test, the reset
tests that advance past a settle's wait or read the sessions, and the surface
order's CPU wait test wait for those counts instead of sleeping.

Test and testkit code only: the library is unchanged for the guest and the
host.

(cherry picked from commit d17b625050aa3b26a27372cde0b416c6baea5957)
2026-12-03 16:15:59 -08:00
..