mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-11 04:52:13 +00:00
The Windows helper tests hand step_after_wait a wait that reports when the helper reaches it and blocks until the test has reaped the stand-in launcher, so the old-file check no longer depends on a 500 ms sleep or a 2 s observation window. The test-only wait_watch hooks are removed. The launcher-that-keeps-running test asks the real wait with no timeout instead of bounding the elapsed time. The Unix restart test puts a sleep script on the helper's PATH that reports each pause through a named pipe, and the started command reports whether the old process was still running. A thread that waits for the helper to exit writes to the same pipe, so a helper that dies early fails the test instead of hanging it.