summaryrefslogtreecommitdiff
path: root/tests/cp
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-07-25 17:52:37 +0000
committerJim Meyering <jim@meyering.net>1998-07-25 17:52:37 +0000
commit27682ba5cecd8fc749935b67cae022156798cd44 (patch)
tree26988281a0b5cf7332685b2697e07a3f1d2c2871 /tests/cp
parent8dd3e53122f172d159cafcc5f2f117dbc8631418 (diff)
downloadcoreutils-27682ba5cecd8fc749935b67cae022156798cd44.tar.xz
Skip three more unportable tests. These failed on SunOS4.1.4.
Diffstat (limited to 'tests/cp')
-rwxr-xr-xtests/cp/same-file16
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/cp/same-file b/tests/cp/same-file
index 1786933de..03d34d058 100755
--- a/tests/cp/same-file
+++ b/tests/cp/same-file
@@ -30,9 +30,16 @@ contents=XYZ
for args in 'foo symlink' 'symlink foo' 'foo foo' 'sl1 sl2' 'foo hardlink'; do
for options in '' -d -f -df -b -bd -bf -bdf \
-l -dl -fl -dfl -bl -bdl -bfl -bdfl; do
- case $args$options in 'sl1 sl2'-bd*l)
- # This test is not portable.
- continue
+ case $args$options in
+ # These tests are not portable.
+ 'sl1 sl2'-bd*l)
+ continue;;
+ 'symlink foo'-dfl)
+ continue;;
+ 'symlink foo'-bdfl)
+ continue;;
+ 'sl1 sl2'-dfl)
+ continue;;
esac
rm -rf dir
mkdir dir
@@ -105,11 +112,9 @@ cat <<\EOF > $expected
0 -l (foo symlink -> foo)
0 -dl (foo symlink -> foo)
0 -fl (foo symlink -> foo)
-0 -dfl (foo -> foo symlink -> foo) symlink-loop symlink-loop
0 -bl (foo symlink -> foo)
0 -bdl (foo symlink -> foo)
0 -bfl (foo symlink -> foo)
-0 -bdfl (foo -> foo foo.~1~ symlink -> foo) symlink-loop symlink-loop
1 [cp: `foo' and `foo' are the same file] (foo)
1 -d [cp: `foo' and `foo' are the same file] (foo)
@@ -139,7 +144,6 @@ cat <<\EOF > $expected
0 -l (foo sl1 -> foo sl2 -> foo)
0 -dl (foo sl1 -> foo sl2 -> foo)
0 -fl (foo sl1 -> foo sl2 -> foo)
-0 -dfl (foo sl1 -> foo sl2 -> foo)
0 -bl (foo sl1 -> foo sl2 -> foo)
0 -bfl (foo sl1 -> foo sl2 -> foo)