mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
remove second sh process to have timeout waiting for the right process
This commit is contained in:
parent
a2a375d0dd
commit
7e22f99913
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue