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

cp: debug with --update=none should show 'skipped'

This commit is contained in:
Sylvestre Ledru 2023-12-23 17:58:05 +01:00
parent 6b1f51385f
commit 8685e05f4e
2 changed files with 22 additions and 1 deletions

View file

@ -3367,6 +3367,21 @@ fn test_cp_debug_sparse_reflink() {
}
}
#[test]
fn test_cp_debug_no_update() {
let ts = TestScenario::new(util_name!());
let at = &ts.fixtures;
at.touch("a");
at.touch("b");
ts.ucmd()
.arg("--debug")
.arg("--update=none")
.arg("a")
.arg("b")
.succeeds()
.stdout_contains("skipped 'b'");
}
#[test]
#[cfg(target_os = "linux")]
fn test_cp_debug_sparse_always() {