diff options
Diffstat (limited to 'tests/tsort/basic-1')
-rwxr-xr-x | tests/tsort/basic-1 | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/tsort/basic-1 b/tests/tsort/basic-1 index 99b1fedd2..a70830c58 100755 --- a/tests/tsort/basic-1 +++ b/tests/tsort/basic-1 @@ -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" +$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 #/ |