1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

Merge pull request #5899 from cakebaker/bump_wild

Bump wild from 2.2.0 to 2.2.1
This commit is contained in:
Sylvestre Ledru 2024-01-28 21:10:59 +01:00 committed by GitHub
commit 247306b7c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 2 deletions

4
Cargo.lock generated
View file

@ -3329,9 +3329,9 @@ dependencies = [
[[package]]
name = "wild"
version = "2.2.0"
version = "2.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "10d01931a94d5a115a53f95292f51d316856b68a035618eb831bbba593a30b67"
checksum = "a3131afc8c575281e1e80f36ed6a092aa502c08b18ed7524e86fbbb12bb410e1"
dependencies = [
"glob",
]

View file

@ -226,6 +226,19 @@ fn test_rm_directory_without_flag() {
.stderr_contains(&format!("cannot remove '{dir}': Is a directory"));
}
#[test]
#[cfg(windows)]
// https://github.com/uutils/coreutils/issues/3200
fn test_rm_directory_with_trailing_backslash() {
let (at, mut ucmd) = at_and_ucmd!();
let dir = "dir";
at.mkdir(dir);
ucmd.arg(".\\dir\\").arg("-rf").succeeds();
assert!(!at.dir_exists(dir));
}
#[test]
fn test_rm_verbose() {
let (at, mut ucmd) = at_and_ucmd!();