summaryrefslogtreecommitdiff
path: root/tests/misc/od
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/od')
-rwxr-xr-xtests/misc/od12
1 files changed, 2 insertions, 10 deletions
diff --git a/tests/misc/od b/tests/misc/od
index bf41c3846..498e57a85 100755
--- a/tests/misc/od
+++ b/tests/misc/od
@@ -17,16 +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=.}
-
-PROG=`echo $0|sed 's,.*/,,'`; export PROG
-
-$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,.*/,,'`
me=`echo $0|sed 's,.*/,,'`
@@ -78,7 +70,7 @@ my @Tests =
my $save_temps = $ENV{DEBUG};
my $verbose = $ENV{VERBOSE};
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
+my $prog = 'od';
my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
exit $fail;
EOF