summaryrefslogtreecommitdiff
path: root/tests/misc/head-elide-tail
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/head-elide-tail')
-rwxr-xr-xtests/misc/head-elide-tail10
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/misc/head-elide-tail b/tests/misc/head-elide-tail
index 4bdcf535b..4de108d4a 100755
--- a/tests/misc/head-elide-tail
+++ b/tests/misc/head-elide-tail
@@ -2,7 +2,7 @@
# -*- perl -*-
# Exercise head's --bytes=-N option.
-# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2005, 2007 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -17,14 +17,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-: ${PERL=perl}
: ${srcdir=.}
-
-$PERL -e 'use warnings;' > /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/../require-perl
me=`echo $0|sed 's,.*/,,'`
exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF