From: Jim Meyering Date: Fri, 7 Jun 2002 14:49:21 +0000 (+0000) Subject: Also accept the permission-denied diagnostic X-Git-Tag: FILEUTILS-4_1_9~120 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bae1890d5bc0afdd3d60c23d0d78dac35bd525ef;p=thirdparty%2Fcoreutils.git Also accept the permission-denied diagnostic issued by some losing systems. Reported by Volker Borchert. --- diff --git a/tests/mv/part-fail b/tests/mv/part-fail index dadadd2ff5..1915ccb336 100755 --- a/tests/mv/part-fail +++ b/tests/mv/part-fail @@ -41,7 +41,21 @@ cat < 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 < 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