mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
using other than TERM/KILL signal to see if --preserve-status works
This commit is contained in:
@@ -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!()
|
||||||
|
|||||||
Reference in New Issue
Block a user