mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
mv: fix error message when one of the multiple src doesn't exist
This commit is contained in:
parent
e947c713c8
commit
2c528cfcb5
2 changed files with 20 additions and 0 deletions
|
@ -1717,3 +1717,18 @@ mod inter_partition_copying {
|
|||
.stderr_contains("Permission denied");
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_mv_error_msg_with_multiple_sources_that_does_not_exist() {
|
||||
let scene = TestScenario::new(util_name!());
|
||||
let at = &scene.fixtures;
|
||||
at.mkdir("d");
|
||||
scene
|
||||
.ucmd()
|
||||
.arg("a")
|
||||
.arg("b/")
|
||||
.arg("d")
|
||||
.fails()
|
||||
.stderr_contains("mv: cannot stat 'a': No such file or directory")
|
||||
.stderr_contains("mv: cannot stat 'b/': No such file or directory");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue