]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
add another test
authorJim Meyering <jim@meyering.net>
Sat, 5 Jan 2002 20:10:44 +0000 (20:10 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 5 Jan 2002 20:10:44 +0000 (20:10 +0000)
tests/cp/r-vs-symlink

index c94842bf30e76aaf32d27ee8a3f219514cf60d51..6a4e72d4a89ceb5c71d03b5996cfa4954448f61f 100755 (executable)
@@ -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