summaryrefslogtreecommitdiff
path: root/tests/misc/sum-sysv
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/sum-sysv')
-rwxr-xr-xtests/misc/sum-sysv7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/misc/sum-sysv b/tests/misc/sum-sysv
index 5181cff0a..d960f9818 100755
--- a/tests/misc/sum-sysv
+++ b/tests/misc/sum-sysv
@@ -21,11 +21,8 @@ if test "$VERBOSE" = yes; then
sum --version
fi
-$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
-}
+: ${srcdir=.}
+. $srcdir/../require-perl
# Avoid a problem when run in a UTF-8 locale.
# Otherwise, Perl would try to (and fail to) interpret