From 34535fcb6176bff1fae092c9b2c834845c6c25f2 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sun, 19 Apr 2026 17:02:22 +0800 Subject: [PATCH] tests/checks/disown: fix signal delivery race Intermittent test failure suggests that kill(3p) returns before the signal is delivered. Fix the failure by waiting until the signal has been delivered before continuing the test. Fixes #12635 --- tests/checks/disown.fish | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/checks/disown.fish b/tests/checks/disown.fish index 536880d2c..ff88c3ec5 100644 --- a/tests/checks/disown.fish +++ b/tests/checks/disown.fish @@ -14,6 +14,9 @@ status job-control full sleep 1 & set -l pid (jobs -lp) kill -SIGSTOP $pid +while not jobs | grep -q stopped + sleep .01 +end disown # CHECKERR: disown: job 1 ('sleep 1 &') was stopped and has been signalled to continue. echo $status