Expand description
Shared test helpers for the term-session-mock binary.
Every test suite that needs the mock binary (the session server integration
tests, the daemon tests, the PTY engine unit tests) resolves it through the
single canonical get_mock_bin helper instead of re-implementing
current_exe() path-walking in each crate. Keeping the resolution logic in
the mock’s own library means there is exactly one place that knows where the
binary lives and how to find it on every platform.
Constants§
- CHECK_
PID_ ALIVE - Exit code for
check_pidwhen the process is alive. - CHECK_
PID_ DEAD - Exit code for
check_pidwhen the process is not running.
Functions§
- get_
mock_ bin - Locate (building on demand if necessary) the compiled
term-session-mockbinary. - process_
is_ alive - Whether a process with the given OS PID is currently running.