--- trunk/t/2-input-isi.t 2007/10/10 19:01:55 898 +++ trunk/t/2-input-isi.t 2007/10/12 12:07:35 904 @@ -1,6 +1,6 @@ #!/usr/bin/perl -w -use Test::More tests => 45; +use Test::More tests => 9; use Test::Exception; use Cwd qw/abs_path/; use blib; @@ -8,14 +8,14 @@ use Data::Dump qw/dump/; -my $debug = 1; +my $debug = @ARGV ? 1 : 0; BEGIN { use_ok( 'WebPAC::Input' ); } ok(my $abs_path = abs_path($0), "abs_path"); -$abs_path =~ s#/[^/]*$#/#; +$abs_path =~ s#/[^/]*$#/#; # my $module = 'WebPAC::Input::ISI'; diag "testing with $module"; @@ -42,6 +42,6 @@ cmp_ok($input->pos, '==', $mfn, "pos $mfn"); - diag "rec: ", dump($rec), "\n"; + diag "rec: ", dump($rec), "\n" if $debug; }