Exclude image preparation from client startup deadline
This commit is contained in:
parent
8334fd379f
commit
55eed08db7
1 changed files with 106 additions and 22 deletions
|
|
@ -56,12 +56,13 @@ fn bootstrap_child_retains_exact_pipe_owner_and_pidfd_reap() {
|
|||
let (reader, writer) = pipe_with(PipeFlags::CLOEXEC).unwrap();
|
||||
let target = TargetCommand::new("/bin/sh")
|
||||
.argument("-c")
|
||||
.argument("printf L; read -r _ || exit 0")
|
||||
.argument("printf LR; read -r _ || exit 0")
|
||||
.with_lifetime_pipe_parent_edge();
|
||||
let mut child = child_broker()
|
||||
.spawn_bootstrap(&target, File::from(reader))
|
||||
.unwrap();
|
||||
assert_eq!(child.acquisition_status().unwrap(), b'L');
|
||||
assert_eq!(child.bootstrap_status().unwrap(), b'L');
|
||||
assert_eq!(child.bootstrap_status().unwrap(), b'R');
|
||||
assert!(!child.has_exited().unwrap());
|
||||
drop(writer);
|
||||
let status = child.reap().unwrap();
|
||||
|
|
|
|||
Loading…
Reference in a new issue