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:
parent
38b15c9736
commit
a2a375d0dd
1 changed files with 12 additions and 0 deletions
|
@ -93,6 +93,18 @@ fn test_preserve_status() {
|
||||||
.no_stdout();
|
.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]
|
#[test]
|
||||||
fn test_dont_overflow() {
|
fn test_dont_overflow() {
|
||||||
new_ucmd!()
|
new_ucmd!()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue