Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests/test_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -1653,8 +1653,9 @@ static _Noreturn void cli_scope_host_child(const cli_scope_fixture_t *fixture, i
(void)write(ready_fd, &ready, 1);
close(ready_fd);
bool drained = false;
uint64_t deadline = cbm_now_ms() + 120000U;
while (ready_ok && cbm_now_ms() < deadline) {
/* The parent owns the release pipe. If it exits, poll observes POLLHUP;
* a fixed lifetime can stop a healthy host during a slow binary install. */
while (ready_ok) {
if (cbm_daemon_runtime_service_wait_exited(service, 50U)) {
drained = true;
break;
Expand Down
Loading