Changeset 3712 for lang/perl/Archer

Show
Ignore:
Timestamp:
12/28/07 11:34:35 (11 months ago)
Author:
tokuhirom
Message:

Archer: fixed test.this test is failed when Test::Perl::Critic not found.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Archer/trunk/t/perlcritic.t

    r3666 r3712  
    11#!perl 
    2  
    3 if (!require Test::Perl::Critic) { 
    4     Test::More::plan( 
    5         skip_all => "Test::Perl::Critic required for testing PBP compliance" 
    6     ); 
    7 } 
     2use strict; 
     3use warnings; 
     4use Test::More; 
     5eval "use Test::Perl::Critic"; 
     6plan skip_all => "Test::Perl::Critic required for testing PBP compliance" if $@ ; 
    87 
    98Test::Perl::Critic::all_critic_ok();