summaryrefslogtreecommitdiff
path: root/tests/rm/r-2
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-01-24 08:43:46 +0000
committerJim Meyering <jim@meyering.net>1998-01-24 08:43:46 +0000
commit8a0550a816fdcb48e1785281d3d9195521c85b1f (patch)
treeaf3056e5e4247e990e1a9f8f5fb5f80322dbe830 /tests/rm/r-2
parent663d8b143c40624e89fe99bc539678136c672645 (diff)
downloadcoreutils-8a0550a816fdcb48e1785281d3d9195521c85b1f.tar.xz
Adjust expected output for changed format of `rm --verbose'.
Diffstat (limited to 'tests/rm/r-2')
-rwxr-xr-xtests/rm/r-224
1 files changed, 16 insertions, 8 deletions
diff --git a/tests/rm/r-2 b/tests/rm/r-2
index 5c284d0b1..8fb5e864f 100755
--- a/tests/rm/r-2
+++ b/tests/rm/r-2
@@ -16,6 +16,21 @@ mkdir $tmp $tmp/a $tmp/a/b
> $tmp/a/f
> $tmp/a/b/g
+# FIXME: if this fails, it's a framework failure
+cat <<EOF > $tmp/$test.E
+removing any entries of directory $tmp/a
+removing any entries of directory $tmp/a/b
+removing non-directory $tmp/a/b/g
+removing the directory itself: $tmp/a/b
+removing non-directory $tmp/a/f
+removing the directory itself: $tmp/a
+EOF
+
+LANGUAGE=C
+export LANGUAGE
+LANG=C
+export LANG
+
fail=0
$RM --verbose -r $tmp/a > $tmp/$test.O || fail=1
@@ -23,16 +38,9 @@ if test -d $tmp/a; then
fail=1
fi
-cat <<EOF > $tmp/$test.E
-$tmp/a
-$tmp/a/b
-$tmp/a/b/g
-$tmp/a/f
-EOF
-
# Compare expected and actual output.
cmp $tmp/$test.E $tmp/$test.O || fail=1
-rm -rf $tmp
+#rm -rf $tmp
exit $fail