mirror of
https://github.com/uutils/coreutils
synced 2024-10-07 00:19:14 +00:00
remove second sh process to have timeout waiting for the right process
This commit is contained in:
parent
a2a375d0dd
commit
7e22f99913
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue