From 7842cea0c8304c2c86cb0f045e3563e667064285 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Thu, 13 Oct 2011 22:25:04 -0400 Subject: [PATCH] Add MARC::Record 2.0.1 minimum test to settings-tester.pl Wrap the use_ok() tests in a BEGIN block, per the recommendation of the Test::More perldoc. Signed-off-by: Dan Scott --- Open-ILS/src/support-scripts/settings-tester.pl | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Open-ILS/src/support-scripts/settings-tester.pl b/Open-ILS/src/support-scripts/settings-tester.pl index 31be6ae138..d76c682814 100755 --- a/Open-ILS/src/support-scripts/settings-tester.pl +++ b/Open-ILS/src/support-scripts/settings-tester.pl @@ -2,13 +2,16 @@ # vim:et:ts=4: use strict; use warnings; -use Test::More tests => 4; +use Test::More tests => 5; use Error qw(:try); -use_ok( 'OpenSRF::Utils::Config' ); -use_ok( 'UNIVERSAL::require' ); -use_ok( 'Getopt::Long' ); -use_ok( 'Net::Domain' ); +BEGIN { + use_ok( 'OpenSRF::Utils::Config' ); + use_ok( 'UNIVERSAL::require' ); + use_ok( 'Getopt::Long' ); + use_ok( 'MARC::Record', '2.0.1' ); + use_ok( 'Net::Domain' ); +} my $output = ''; my $perloutput = ''; -- 2.43.2