Replace lexical Rust fragments with real modules

This commit is contained in:
ms2k 2026-07-19 05:12:57 +09:00
commit 247819250b

View file

@ -37,7 +37,10 @@ struct TestDirectory(PathBuf);
impl TestDirectory {
fn create(name: &str) -> TestResult<Self> {
let path = std::env::temp_dir().join(format!(
let parent = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../target/t/escalation");
std::fs::create_dir_all(&parent)?;
let parent = parent.canonicalize()?;
let path = parent.join(format!(
"lazaret-escalation-{name}-{}-{}",
std::process::id(),
Instant::now().elapsed().as_nanos()