summaryrefslogtreecommitdiff
path: root/tests/dircolors
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dircolors')
-rwxr-xr-xtests/dircolors/simple9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/dircolors/simple b/tests/dircolors/simple
index 2f3a4ca2b..99d772e1c 100755
--- a/tests/dircolors/simple
+++ b/tests/dircolors/simple
@@ -3,12 +3,11 @@
: ${PERL=perl}
: ${srcdir=.}
-case "$PERL" in
- *'missing perl')
- echo 1>&2 "$0: configure didn't find a usable version of Perl, so can't run this test"
+$PERL -e 1 > /dev/null 2>&1 || {
+ echo 1>&2 "$0: configure didn't find a usable version of Perl," \
+ "so can't run this test"
exit 77
- ;;
-esac
+}
exec $PERL -w -I$srcdir/.. -MFetish -- - <<\EOF
require 5.003;