1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

using other than TERM/KILL signal to see if --preserve-status works

This commit is contained in:
Ulrich Hornung 2024-03-12 19:05:51 +01:00
parent 38b15c9736
commit a2a375d0dd
No known key found for this signature in database
GPG key ID: 64EA3BAAF1BC0603

View file

@ -93,6 +93,18 @@ fn test_preserve_status() {
.no_stdout();
}
#[test]
fn test_preserve_status_even_when_send_signal() {
// When sending CONT signal, process doesn't get killed or stopped.
// So, expected result is success and code 0.
new_ucmd!()
.args(&["-s", "CONT", "--preserve-status", ".1", "sleep", "5"])
.succeeds()
.code_is(0)
.no_stderr()
.no_stdout();
}
#[test]
fn test_dont_overflow() {
new_ucmd!()