1
Fork 0
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:
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", "10",
"sh", "sh",
"-c", "-c",
"sh -c \"trap 'echo xyz' TERM; sleep 30\"", "trap 'echo inside_trap' TERM; sleep 30",
]) ])
.fails() .fails()
.code_is(124) .code_is(124)
.stdout_contains("xyz") .stdout_contains("inside_trap")
.stderr_contains("Terminated"); .stderr_contains("Terminated");
} }