// src/test_support.rs
//
// Process-global test serialization lock. Tests that touch process-global state
// -- notably the current working directory and the debug/hot-reload statics --
// must not run concurrently, because Cargo runs a binary's tests in parallel
// threads within one process.
pub static LOCK: Mutex = new;
pub
// Point the cook's content-addressed cache at a private temp dir for the test
// process, so an in-memory rebuild never touches the working directory. Installs
// on every call rather than once: a test that clears the root when it finishes
// would otherwise leave every later caller without one, which reads as an
// unrelated failure in whichever test the run happened to order next.
pub