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:
parent
2a7209116d
commit
23de181171
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue