summaryrefslogtreecommitdiff
path: root/tests/cp/cp-mv-backup
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-11-20 10:46:06 +0000
committerJim Meyering <jim@meyering.net>1999-11-20 10:46:06 +0000
commit8c4882550ea13303e99348d642aff3a211d2045f (patch)
tree8bf0c6d2dd6d3fd57fda9448db58b9b6dec1caa3 /tests/cp/cp-mv-backup
parent4a602cec80abb616fa0c3c9d2d8e8f0fc7290826 (diff)
downloadcoreutils-8c4882550ea13303e99348d642aff3a211d2045f.tar.xz
Run `diff -u' if the test fails.
Diffstat (limited to 'tests/cp/cp-mv-backup')
-rwxr-xr-xtests/cp/cp-mv-backup6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cp/cp-mv-backup b/tests/cp/cp-mv-backup
index 1bad6de20..aaddaa25c 100755
--- a/tests/cp/cp-mv-backup
+++ b/tests/cp/cp-mv-backup
@@ -91,9 +91,9 @@ EOF
sed 's/: x/:/' $expected-tmp |cat $expected-tmp - > $expected
-# Uncomment this if you see a failure and want to try to diagnose it.
-#diff -u $expected $actual 1>&2
-
cmp $expected $actual || fail=1
+# Uncomment this if you see a failure and want to try to diagnose it.
+test $fail = 1 && diff -u $expected $actual 1>&2
+
exit $fail