Exclude image preparation from client startup deadline

This commit is contained in:
ms2k 2026-07-28 22:39:10 +09:00
commit 55eed08db7

View file

@ -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();