diff options
Diffstat (limited to 'tests/basename/basic')
-rwxr-xr-x | tests/basename/basic | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/basename/basic b/tests/basename/basic index f44e39823..e98e842b9 100755 --- a/tests/basename/basic +++ b/tests/basename/basic @@ -4,13 +4,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" - exit 77 - ;; -esac +$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 +} d=$srcdir/.. exec $PERL -w -I$d -MFetish -- - << \EOF |