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

rm: make -d/-r obligatory for removing symlink_dir (windows)

This commit is contained in:
Jan Scheer 2021-03-23 19:12:10 +01:00
parent 58b9372dbe
commit bdf603a65e
2 changed files with 23 additions and 11 deletions

View file

@ -194,7 +194,10 @@ fn test_rm_dir_symlink() {
at.mkdir(dir);
at.symlink_dir(dir, link);
#[cfg(not(windows))]
ucmd.arg(link).succeeds();
#[cfg(windows)]
ucmd.arg("-r").arg(link).succeeds();
}
#[test]