summaryrefslogtreecommitdiff
path: root/tests/rm/rm3
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-05-22 09:49:14 +0000
committerJim Meyering <jim@meyering.net>2002-05-22 09:49:14 +0000
commitf08e272c8befe473d41b43d83801c76bdf1c9b9c (patch)
treea76725f3110f1eb787bc1a1bee26076fd5a215fb /tests/rm/rm3
parentc2e4117240f098c12767feab3fae708aebbd96ec (diff)
downloadcoreutils-f08e272c8befe473d41b43d83801c76bdf1c9b9c.tar.xz
tweak for new diagnostics
add a nonempty file
Diffstat (limited to 'tests/rm/rm3')
-rwxr-xr-xtests/rm/rm311
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'