summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-05-29 21:05:22 +0000
committerJim Meyering <jim@meyering.net>2000-05-29 21:05:22 +0000
commitafa54698c9b80fa02259511d8dd4ee3ffc2d7599 (patch)
tree294555ccd413d5211d4ff8da54835dd2c006680c /tests
parenta4791b30ea2a552cd1efba124ad84f69708998a4 (diff)
downloadcoreutils-afa54698c9b80fa02259511d8dd4ee3ffc2d7599.tar.xz
Adapt to fit new semantics of `cp -d'.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/cp/same-file6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cp/same-file b/tests/cp/same-file
index 5a0da5bf8..908fe2e71 100755
--- a/tests/cp/same-file
+++ b/tests/cp/same-file
@@ -130,7 +130,7 @@ cat <<\EOF > $expected
0 -bdfl (foo foo.~1~)
1 [cp: `sl1' and `sl2' are the same file] (foo sl1 -> foo sl2 -> foo)
-1 -d [cp: `sl1' and `sl2' are the same file] (foo sl1 -> foo sl2 -> foo)
+1 -d [cp: cannot create symbolic link `sl2': File exists] (foo sl1 -> foo sl2 -> foo)
0 -f (foo sl1 -> foo sl2)
0 -df (foo sl1 -> foo sl2 -> foo)
0 -b (foo sl1 -> foo sl2 sl2.~1~ -> foo)
@@ -138,7 +138,7 @@ cat <<\EOF > $expected
0 -bf (foo sl1 -> foo sl2 sl2.~1~ -> foo)
0 -bdf (foo sl1 -> foo sl2 -> foo sl2.~1~ -> foo)
0 -l (foo sl1 -> foo sl2 -> foo)
-0 -dl (foo sl1 -> foo sl2 -> foo)
+1 -dl [cp: cannot create link `sl2': File exists] (foo sl1 -> foo sl2 -> foo)
0 -fl (foo sl1 -> foo sl2 -> foo)
0 -bl (foo sl1 -> foo sl2 -> foo)
0 -bfl (foo sl1 -> foo sl2 -> foo)
@@ -163,7 +163,7 @@ cat <<\EOF > $expected
EOF
# Uncomment this if you see a failure and want to try to diagnose it.
-# diff -u $expected $actual 1>&2
+diff -u $expected $actual 1>&2
cmp $expected $actual
exit $?