summaryrefslogtreecommitdiff
path: root/tests/cp
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-01-05 20:10:44 +0000
committerJim Meyering <jim@meyering.net>2002-01-05 20:10:44 +0000
commitaaa4c7445beb899915e14fc300a8b1baecfcc55c (patch)
treef20691111f92f56406b9b882803634d8f6609aa7 /tests/cp
parent4d18918a3accdebabb995735b7c8914c19e19d60 (diff)
downloadcoreutils-aaa4c7445beb899915e14fc300a8b1baecfcc55c.tar.xz
add another test
Diffstat (limited to 'tests/cp')
-rwxr-xr-xtests/cp/r-vs-symlink4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/cp/r-vs-symlink b/tests/cp/r-vs-symlink
index c94842bf3..6a4e72d4a 100755
--- a/tests/cp/r-vs-symlink
+++ b/tests/cp/r-vs-symlink
@@ -18,6 +18,7 @@ mkdir $tmp || framework_failure=1
cd $tmp || framework_failure=1
echo abc > foo || framework_failure=1
ln -s foo slink || framework_failure=1
+ln -s no-such-file no-file || framework_failure=1
if test $framework_failure = 1; then
echo '$0: failure in testing framework' 1>&2
@@ -26,6 +27,9 @@ fi
fail=0
+# This must fail.
+cp -r no-file junk 2>/dev/null && fail=1
+
cp -r slink bar || fail=1
set x `ls -l bar`; shift; mode=$1
case $mode in