summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/cp/same-file4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/cp/same-file b/tests/cp/same-file
index 910973f66..b1b9f8693 100755
--- a/tests/cp/same-file
+++ b/tests/cp/same-file
@@ -51,6 +51,7 @@ for args in 'foo symlink' 'symlink foo' 'foo foo' 'sl1 sl2' 'foo hardlink'; do
case "$args" in *sl2*) ln -s foo sl2;; esac
(
(
+ echo 1>&2 $CP $options $args
$CP $options $args 2>.err
echo $? $options
@@ -166,5 +167,8 @@ cat <<\EOF > $expected
EOF
+# Uncomment this if you see a failure and want to try to diagnose it.
+# diff -u $expected $actual 1>&2
+
cmp $expected $actual
exit $?