summaryrefslogtreecommitdiff
path: root/tests/mv/part-fail
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-06-07 14:49:21 +0000
committerJim Meyering <jim@meyering.net>2002-06-07 14:49:21 +0000
commitbae1890d5bc0afdd3d60c23d0d78dac35bd525ef (patch)
tree047fec070d701ef09b79d209c899df2d0ed6e2e1 /tests/mv/part-fail
parentb2816db2074e472409fa2246a6b011682fa716dd (diff)
downloadcoreutils-bae1890d5bc0afdd3d60c23d0d78dac35bd525ef.tar.xz
Also accept the permission-denied diagnostic
issued by some losing systems. Reported by Volker Borchert.
Diffstat (limited to 'tests/mv/part-fail')
-rwxr-xr-xtests/mv/part-fail16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/mv/part-fail b/tests/mv/part-fail
index dadadd2ff..1915ccb33 100755
--- a/tests/mv/part-fail
+++ b/tests/mv/part-fail
@@ -41,7 +41,21 @@ cat <<EOF > exp
mv: inter-device move failed: \`k' to \`$other_partition_tmpdir/k'; unable to remove target: Permission denied
EOF
-cmp out exp || fail=1
+# On some (less-compliant) systems, we get EPERM in this case.
+# Accept either diagnostic.
+cat <<EOF > exp2
+mv: cannot move \`k' to \`$other_partition_tmpdir/k': Permission denied
+EOF
+
+if cmp out exp >/dev/null 2>&1; then
+ :
+else
+ if cmp out exp2; then
+ :
+ else
+ fail=1
+ fi
+fi
test $fail = 1 && diff out exp 2> /dev/null
(exit $fail); exit