summaryrefslogtreecommitdiff
path: root/tests/rm
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-10-09 09:28:37 +0200
committerJim Meyering <meyering@redhat.com>2011-10-09 10:00:12 +0200
commitc977d5de8d0cb83d9193dea860ed7f395df89858 (patch)
treec3e46d1aed17f807f61c5e1519d0e863e8057d54 /tests/rm
parentbb1c6912f23edcd77ccb18043b2b83db8754f8d9 (diff)
downloadcoreutils-c977d5de8d0cb83d9193dea860ed7f395df89858.tar.xz
tests: skip rather than failing when perl is not available
* tests/df/total-verify: Use require_perl_, so that this test is skipped when perl is not available. * tests/rm/deep-2: Likewise, and fix wording in a comment. Reported by Bruno Haible.
Diffstat (limited to 'tests/rm')
-rwxr-xr-xtests/rm/deep-23
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/rm/deep-2 b/tests/rm/deep-2
index b7651da32..d9566aace 100755
--- a/tests/rm/deep-2
+++ b/tests/rm/deep-2
@@ -18,6 +18,7 @@
. "${srcdir=.}/init.sh"; path_prepend_ ../src
print_ver_ rm
+require_perl_
# Root can run this test, but it always succeeds, since for root, all
# files are writable, and write_protected_non_symlink never reaches
@@ -27,7 +28,7 @@ skip_if_root_
mkdir x || framework_failure_
cd x || framework_failure_
-# Construct a hierarchy containing a relative file with a name
+# Construct a hierarchy containing a relative file with a long name
: ${PERL=perl}
$PERL \
-e 'my $d = "x" x 200; foreach my $i (1..52)' \