mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
sync: make fail like GNU - tests/misc/sync.sh
This commit is contained in:
parent
e523a56dab
commit
fc1c7755b9
2 changed files with 12 additions and 0 deletions
|
@ -44,3 +44,11 @@ fn test_sync_no_existing_files() {
|
|||
.fails()
|
||||
.stderr_contains("cannot stat");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_sync_data_but_not_file() {
|
||||
new_ucmd!()
|
||||
.arg("--data")
|
||||
.fails()
|
||||
.stderr_contains("sync: --data needs at least one argument");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue