Skip to main content

Crate term_session_mock

Crate term_session_mock 

Source
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_pid when the process is alive.
CHECK_PID_DEAD
Exit code for check_pid when the process is not running.

Functions§

get_mock_bin
Locate (building on demand if necessary) the compiled term-session-mock binary.
process_is_alive
Whether a process with the given OS PID is currently running.