summaryrefslogtreecommitdiff
path: root/tests/mv/diag
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-06-28 18:41:01 +0000
committerJim Meyering <jim@meyering.net>2004-06-28 18:41:01 +0000
commitfac33c194cb68d0d7335815a2cc5d3961da39b4d (patch)
tree8a4f30477a289eda40ceda6ed6898c81dce8c7dc /tests/mv/diag
parent6860c032dac6a807a908125edd1dc2f95549ca5a (diff)
downloadcoreutils-fac33c194cb68d0d7335815a2cc5d3961da39b4d.tar.xz
Don't assume "mv --target=nonexistentdir" will complain about the arg count.
Adjust to new (briefer) diagnostics.
Diffstat (limited to 'tests/mv/diag')
-rwxr-xr-xtests/mv/diag10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/mv/diag b/tests/mv/diag
index c3063793a..c8d08925d 100755
--- a/tests/mv/diag
+++ b/tests/mv/diag
@@ -31,7 +31,7 @@ fi
# Too few args. This first one did fail, but with an incorrect diagnostic
# until fileutils-4.0u.
-mv --target=d >> out 2>&1 && fail=1
+mv --target=. >> out 2>&1 && fail=1
mv no-file >> out 2>&1 && fail=1
# Target is not a directory.
@@ -41,12 +41,10 @@ mv --target=f2 f1 >> out 2>&1 && fail=1
cat > exp <<\EOF
mv: missing file operand
Try `mv --help' for more information.
-mv: missing file operand after `no-file'
-Try `mv --help' for more information.
-mv: when moving multiple files, last argument must be a directory
-Try `mv --help' for more information.
-mv: specified target, `f2' is not a directory
+mv: missing destination file operand after `no-file'
Try `mv --help' for more information.
+mv: target `f1' is not a directory
+mv: target `f2' is not a directory
EOF
cmp out exp || fail=1