mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
Revert "mv: show "same file" error for mv d/f d
"
This commit is contained in:
parent
527bb6fad8
commit
9877085702
2 changed files with 1 additions and 25 deletions
|
@ -402,23 +402,7 @@ fn test_mv_same_file() {
|
|||
ucmd.arg(file_a)
|
||||
.arg(file_a)
|
||||
.fails()
|
||||
.stderr_is(format!("mv: '{file_a}' and '{file_a}' are the same file\n"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_mv_file_to_same_dir() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
let file = "a";
|
||||
let dir = "dir";
|
||||
let path = &format!("{dir}/{file}");
|
||||
|
||||
at.mkdir(dir);
|
||||
at.touch(path);
|
||||
|
||||
ucmd.arg(path)
|
||||
.arg(dir)
|
||||
.fails()
|
||||
.stderr_is(format!("mv: '{path}' and '{path}' are the same file\n"));
|
||||
.stderr_is(format!("mv: '{file_a}' and '{file_a}' are the same file\n",));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue