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.
This commit is contained in:
Jim Meyering 2011-10-09 09:28:37 +02:00
parent bb1c6912f2
commit c977d5de8d
2 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@
. "${srcdir=.}/init.sh"; path_prepend_ ../src
print_ver_ df
require_perl_
df || skip_ "df fails"

View File

@ -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)' \