1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

Added tests for cp --preserve without args

Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
This commit is contained in:
Hanif Bin Ariffin 2021-06-16 11:32:15 +08:00
parent 2a7209116d
commit 23de181171

View file

@ -726,6 +726,15 @@ fn test_cp_parents_dest_not_directory() {
.stderr_contains("with --parents, the destination must be a directory"); .stderr_contains("with --parents, the destination must be a directory");
} }
#[test]
fn test_cp_preserve_no_args() {
new_ucmd!()
.arg(TEST_COPY_FROM_FOLDER_FILE)
.arg(TEST_HELLO_WORLD_DEST)
.arg("--preserve")
.succeeds();
}
#[test] #[test]
// For now, disable the test on Windows. Symlinks aren't well support on Windows. // For now, disable the test on Windows. Symlinks aren't well support on Windows.
// It works on Unix for now and it works locally when run from a powershell // It works on Unix for now and it works locally when run from a powershell