diff options
author | Jim Meyering <meyering@redhat.com> | 2011-10-09 09:28:37 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-10-09 10:00:12 +0200 |
commit | c977d5de8d0cb83d9193dea860ed7f395df89858 (patch) | |
tree | c3e46d1aed17f807f61c5e1519d0e863e8057d54 /tests | |
parent | bb1c6912f23edcd77ccb18043b2b83db8754f8d9 (diff) | |
download | coreutils-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')
-rwxr-xr-x | tests/df/total-verify | 1 | ||||
-rwxr-xr-x | tests/rm/deep-2 | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/df/total-verify b/tests/df/total-verify index bbf2e3b9c..6098c0e24 100755 --- a/tests/df/total-verify +++ b/tests/df/total-verify @@ -18,6 +18,7 @@ . "${srcdir=.}/init.sh"; path_prepend_ ../src print_ver_ df +require_perl_ df || skip_ "df fails" 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)' \ |