summaryrefslogtreecommitdiff
path: root/tests/cp/same-file
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-08-12 17:14:34 +0000
committerJim Meyering <jim@meyering.net>1998-08-12 17:14:34 +0000
commit138bad15122177477bfd750ea88c4fd51baf6239 (patch)
treee7b5468349a8a4697385ecdb29545c328e29458b /tests/cp/same-file
parentf0604f17d6bbe30ea1f2a34feb03c71036f7d9c3 (diff)
downloadcoreutils-138bad15122177477bfd750ea88c4fd51baf6239.tar.xz
add commented `diff -u' command
Diffstat (limited to 'tests/cp/same-file')
-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 $?