From 7e22f9991346b13e0896a25d3572e28b63c2b05c Mon Sep 17 00:00:00 2001 From: Ulrich Hornung Date: Tue, 12 Mar 2024 19:08:51 +0100 Subject: [PATCH] remove second sh process to have timeout waiting for the right process --- tests/by-util/test_timeout.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/by-util/test_timeout.rs b/tests/by-util/test_timeout.rs index f46cb0fec..896065a20 100644 --- a/tests/by-util/test_timeout.rs +++ b/tests/by-util/test_timeout.rs @@ -163,10 +163,10 @@ fn test_kill_subprocess() { "10", "sh", "-c", - "sh -c \"trap 'echo xyz' TERM; sleep 30\"", + "trap 'echo inside_trap' TERM; sleep 30", ]) .fails() .code_is(124) - .stdout_contains("xyz") + .stdout_contains("inside_trap") .stderr_contains("Terminated"); }