Remove phase vocabulary from Lazaret interfaces
This commit is contained in:
parent
3f9b1b3543
commit
e7dd95aea6
1 changed files with 547 additions and 579 deletions
|
|
@ -55,7 +55,7 @@ fn run_all() -> std::io::Result<()> {
|
|||
failed_acknowledged_transition_refuses_exact_wrapper_release()?;
|
||||
lifetime_pipe_descriptor_contract()?;
|
||||
failed_stages_and_acknowledgments()?;
|
||||
production_wrapper_refuses_former_harness_path()?;
|
||||
launch_wrapper_refuses_former_harness_path()?;
|
||||
malformed_barriers_refuse()?;
|
||||
sa_nocldwait_refuses()?;
|
||||
foreign_non_child_refuses()?;
|
||||
|
|
@ -365,7 +365,7 @@ fn marker(name: &str) -> std::path::PathBuf {
|
|||
))
|
||||
}
|
||||
|
||||
fn production_wrapper() -> &'static std::path::Path {
|
||||
fn launch_wrapper() -> &'static std::path::Path {
|
||||
std::path::Path::new(env!("CARGO_BIN_EXE_lazaret-launch-wrapper"))
|
||||
}
|
||||
|
||||
|
|
@ -518,16 +518,16 @@ fn failed_stages_and_acknowledgments() -> std::io::Result<()> {
|
|||
}
|
||||
|
||||
#[allow(clippy::disallowed_methods, clippy::disallowed_types)]
|
||||
fn production_wrapper_refuses_former_harness_path() -> std::io::Result<()> {
|
||||
fn launch_wrapper_refuses_former_harness_path() -> std::io::Result<()> {
|
||||
let marker = marker("former-harness");
|
||||
let status = std::process::Command::new(production_wrapper())
|
||||
let status = std::process::Command::new(launch_wrapper())
|
||||
.arg("--acquisition-harness")
|
||||
.arg("success")
|
||||
.arg(&marker)
|
||||
.status()?;
|
||||
if status.success() || marker.exists() {
|
||||
Err(std::io::Error::other(
|
||||
"production wrapper accepted former test harness path",
|
||||
"launch wrapper accepted former test harness path",
|
||||
))
|
||||
} else {
|
||||
Ok(())
|
||||
|
|
@ -544,7 +544,7 @@ fn malformed_barriers_refuse() -> std::io::Result<()> {
|
|||
] {
|
||||
let marker = marker("barrier-refusal");
|
||||
let parent = current_process_identity()?;
|
||||
let mut command = std::process::Command::new(production_wrapper());
|
||||
let mut command = std::process::Command::new(launch_wrapper());
|
||||
command
|
||||
.arg("--lazaret-private-process-role")
|
||||
.arg("launch-wrapper");
|
||||
|
|
|
|||
Loading…
Reference in a new issue