Replace lexical Rust fragments with real modules
This commit is contained in:
parent
f8849cdb5f
commit
247819250b
1 changed files with 3302 additions and 2671 deletions
|
|
@ -63,7 +63,7 @@ fn run_all() -> std::io::Result<()> {
|
|||
}
|
||||
|
||||
fn target_stdin_does_not_gain_write_authority() -> std::io::Result<()> {
|
||||
let path = std::env::temp_dir().join(format!(
|
||||
let path = artifact_path(&format!(
|
||||
"lazaret-target-stdin-authority-{}-{}",
|
||||
std::process::id(),
|
||||
SEQUENCE.fetch_add(1, Ordering::Relaxed)
|
||||
|
|
@ -358,13 +358,20 @@ fn run_lifetime_pipe_target(marker: &std::path::Path, stderr: Stdio) -> std::io:
|
|||
}
|
||||
|
||||
fn marker(name: &str) -> std::path::PathBuf {
|
||||
std::env::temp_dir().join(format!(
|
||||
artifact_path(&format!(
|
||||
"lazaret-acquisition-{name}-{}-{}",
|
||||
std::process::id(),
|
||||
SEQUENCE.fetch_add(1, Ordering::Relaxed)
|
||||
))
|
||||
}
|
||||
|
||||
fn artifact_path(name: &str) -> std::path::PathBuf {
|
||||
let parent = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"))
|
||||
.join("../../target/test-artifacts/linux-acquisition");
|
||||
std::fs::create_dir_all(&parent).unwrap();
|
||||
parent.canonicalize().unwrap().join(name)
|
||||
}
|
||||
|
||||
fn launch_wrapper() -> &'static std::path::Path {
|
||||
std::path::Path::new(env!("CARGO_BIN_EXE_lazaret-launch-wrapper"))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue