From a9d979d38f2a23010968681b4a4ab0c3cfd1d4ce Mon Sep 17 00:00:00 2001 From: elwrcl Date: Wed, 30 Sep 2026 00:42:26 +0300 Subject: [PATCH] test: bound the whole pipe in the headless clipboard check --- nix/checks.ulu.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nix/checks.ulu.nix b/nix/checks.ulu.nix index bab1c14..aedd066 100644 --- a/nix/checks.ulu.nix +++ b/nix/checks.ulu.nix @@ -57,7 +57,9 @@ ! grep -q '^fail' doctor.txt # Through a pipe: the clipboard child must not keep it open. - timeout 10 valw screen -o - | cat > shot.png + # The timeout covers the reader too; the child is in its own + # session, so bounding valw alone would not catch a leak. + timeout 10 sh -c 'valw screen -o - | cat > shot.png' file shot.png | tee file.txt grep -q 'PNG image data, 1280 x 720' file.txt