--- trunk/t/2-input-isi.t 2007/10/10 21:00:48 903 +++ trunk/t/2-input-isi.t 2007/10/12 12:07:35 904 @@ -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; }