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
No known key found for this signature in database
GPG key ID: 64EA3BAAF1BC0603

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");
}