summaryrefslogtreecommitdiff
path: root/tests/misc/xstrtol
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/xstrtol')
-rwxr-xr-xtests/misc/xstrtol14
1 files changed, 1 insertions, 13 deletions
diff --git a/tests/misc/xstrtol b/tests/misc/xstrtol
index d31df6dba..0ebd32bdc 100755
--- a/tests/misc/xstrtol
+++ b/tests/misc/xstrtol
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/perl
# exercise xstrtol's diagnostics via pr
# Copyright (C) 2007-2008 Free Software Foundation, Inc.
@@ -16,17 +16,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-if test "$VERBOSE" = yes; then
- set -x
- pr --version
-fi
-
-: ${srcdir=.}
-. $top_srcdir/tests/require-perl
-
-me=`echo $0|sed 's,.*/,,'`
-exec $PERL -w -I$top_srcdir/tests -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
-require 5.003;
use strict;
(my $ME = $0) =~ s|.*/||;
@@ -59,4 +48,3 @@ my $verbose = $ENV{VERBOSE};
my $fail = run_tests ($ME, $prog, \@Tests, $save_temps, $verbose);
exit $fail;
-EOF