1
Fork 0
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:
Sylvestre Ledru 2022-09-24 12:46:15 +02:00
parent e523a56dab
commit fc1c7755b9
2 changed files with 12 additions and 0 deletions

View file

@ -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");
}