Skip to main content

Module guard

Module guard 

Source
Expand description

Generic RAII cleanup guard for test-owned resources.

Structsยง

KillOnDrop
Runs a cleanup closure exactly once when dropped, including during panic unwinding. Use it to guarantee spawned processes are killed, PTYs are closed, or temp state is removed even when an assertion fails mid-test.