The tilde test set HOME via unsafe std::env::set_var. That is sound under nextest (process per test) but hazardous under cargo test, and the runner is not something a unit test should depend on. expand_tilde now takes the home directory as a parameter; parse_wait_for reads $HOME once and passes it down. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EGntTHCW3sEPy1VBRopNNp