remove second sh process to have timeout waiting for the right process

This commit is contained in:
Ulrich Hornung
2024-03-12 19:08:51 +01:00
parent a2a375d0dd
commit 7e22f99913
+2 -2
View File
@@ -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");
}