summaryrefslogtreecommitdiff
path: root/tests/mv/dir-file
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mv/dir-file')
-rwxr-xr-xtests/mv/dir-file3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/mv/dir-file b/tests/mv/dir-file
index 15ac30143..2ed2b71b6 100755
--- a/tests/mv/dir-file
+++ b/tests/mv/dir-file
@@ -13,7 +13,7 @@ trap "cd $pwd; rm -rf $tmp" 0 1 2 3 15
framework_failure=0
mkdir $tmp || framework_failure=1
cd $tmp
-mkdir dir dir/file || framework_failure=1
+mkdir -p dir/file || framework_failure=1
> file || framework_failure=1
if test $framework_failure = 1; then
@@ -21,6 +21,7 @@ if test $framework_failure = 1; then
exit 1
fi
+# These should both fail, but until fileutils-4.0q only the second one did.
mv dir file && fail=1
mv file dir && fail=1