summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-06-27 20:14:15 +0000
committerJim Meyering <jim@meyering.net>1998-06-27 20:14:15 +0000
commitdfc86db1cc18cef18e3f0bd5756a3583725b1436 (patch)
tree6ca462d2e6926c84202db81103f387052f228b80 /tests
parent162f6824cfe95d73cadafe3194fa93bc508eb717 (diff)
downloadcoreutils-dfc86db1cc18cef18e3f0bd5756a3583725b1436.tar.xz
*** empty log message ***
Diffstat (limited to 'tests')
-rwxr-xr-xtests/cp/new16
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/cp/new b/tests/cp/new
index 5e06f22b8..717aab625 100755
--- a/tests/cp/new
+++ b/tests/cp/new
@@ -61,12 +61,16 @@ cat <<\EOF > $expected
0 foo -> foo foo.~1~ symlink -> foo symlink-loop symlink-loop
0 foo -> foo foo.~1~ symlink -> foo symlink-loop symlink-loop
-1 [cp: `foo' and `foo' are the same file] foo symlink -> foo
-1 [cp: `foo' and `foo' are the same file] foo symlink -> foo
-1 [cp: `foo' and `foo' are the same file] foo symlink -> foo
-0 foo foo.~1~ symlink -> foo
+1 [cp: `foo' and `foo' are the same file] foo
+1 [cp: `foo' and `foo' are the same file] foo
+1 [cp: `foo' and `foo' are the same file] foo
+0 foo foo.~1~
+
+1 [cp: `sl1' and `sl2' are the same file] foo sl1 -> foo sl2 -> foo
+0 foo sl1 -> foo sl2 sl2.~1~ -> foo
+0 foo sl1 -> foo sl2 -> foo sl2.~1~ -> foo
+0 foo sl1 -> foo sl2 -> foo sl2.~1~ -> foo
EOF
-cat $actual 1>&2
-cmp $expected $actual
+cmp $expected $actual # || cat $actual 1>&2