Files
tty7/crates/tty7-core
Adam HitchcockandClaude Opus 5.5 4ed2685d1e test(daemon): the reap-guard test spawns /bin/sleep; singleton tests dup with CLOEXEC (#1090)
* test(spawn): the reap-guard test spawns /bin/sleep

With GNU coreutils first on PATH, `sleep` resolves to `gsleep`, whose
executable name the guard then (correctly) refuses, so
`reap_guard_rejects_a_live_process_of_another_executable` failed on
such machines. It now spawns `/bin/sleep`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(singleton): dup the seat descriptor with CLOEXEC

Two singleton tests `dup` the seat's descriptor to simulate a lingering
reference. A plain `dup` isn't close-on-exec, so a child another test
spawns in that window (the reap test's `sleep 30`) inherits it and holds
the flock for its whole life, failing the clear under the full parallel
run. `F_DUPFD_CLOEXEC` keeps the reference in-process.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 16:12:31 +08:00
..