diff options
author | Jim Meyering <jim@meyering.net> | 2002-05-22 09:49:14 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-05-22 09:49:14 +0000 |
commit | f08e272c8befe473d41b43d83801c76bdf1c9b9c (patch) | |
tree | a76725f3110f1eb787bc1a1bee26076fd5a215fb /tests/rm/rm3 | |
parent | c2e4117240f098c12767feab3fae708aebbd96ec (diff) | |
download | coreutils-f08e272c8befe473d41b43d83801c76bdf1c9b9c.tar.xz |
tweak for new diagnostics
add a nonempty file
Diffstat (limited to 'tests/rm/rm3')
-rwxr-xr-x | tests/rm/rm3 | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/rm/rm3 b/tests/rm/rm3 index a4159a34e..a7699f3ad 100755 --- a/tests/rm/rm3 +++ b/tests/rm/rm3 @@ -20,11 +20,12 @@ mkdir -p $tmp || framework_failure=1 cd $tmp || framework_failure=1 mkdir -p z || framework_failure=1 cd z || framework_failure=1 -touch f fu || framework_failure=1 -ln -s f slink +touch empty empty-u || framework_failure=1 +echo not-empty > fu +ln -s empty-f slink ln -s . slinkdot mkdir d du || framework_failure=1 -chmod u-w fu du || framework_failure=1 +chmod u-w fu du empty-u || framework_failure=1 cd .. if test $framework_failure = 1; then @@ -43,6 +44,7 @@ y y y y +y EOF # Both of these should fail. @@ -52,8 +54,9 @@ mv o2 out sort <<EOF > exp || fail=1 rm: descend into directory \`z' -rm: remove regular file \`z/f' +rm: remove regular empty file \`z/empty' rm: remove write-protected regular file \`z/fu' +rm: remove write-protected regular empty file \`z/empty-u' rm: remove symbolic link \`z/slink' rm: remove symbolic link \`z/slinkdot' rm: remove directory \`z/d' |