summaryrefslogtreecommitdiff
path: root/tests/init.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'tests/init.cfg')
-rw-r--r--tests/init.cfg8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/init.cfg b/tests/init.cfg
index 56df03364..f7615e6ab 100644
--- a/tests/init.cfg
+++ b/tests/init.cfg
@@ -335,6 +335,14 @@ require_dirent_d_type_()
|| skip_ requires d_type support
}
+# Skip the current test if we lack Perl.
+require_perl_()
+{
+ : ${PERL=perl}
+ $PERL -e 'use warnings' > /dev/null 2>&1 \
+ || skip_ 'configure did not find a usable version of Perl'
+}
+
# Does the current (working-dir) file system support sparse files?
require_sparse_support_()
{