t/00-perl-c.t
changeset 103 0c9f37c94f0c
parent 96 26c6306bd9cc
child 150 3db363880766
equal deleted inserted replaced
102:3000f3962b14 103:0c9f37c94f0c
     1 use v5.10;
     1 use v5.10;
     2 use strict;
     2 use strict;
     3 use warnings;
     3 use warnings;
     4 
     4 
     5 use Test::More;
     5 use Test::More qw(no_plan);
     6 use File::Find;
     6 use File::Find;
     7 
     7 
     8 plan skip_all => "no blib directories in \@INC"
     8 plan skip_all => "no blib directories in \@INC"
     9     if not /blib/ ~~ @INC;
     9     if not /blib/ ~~ @INC;
    10 
    10 
    11 find(sub{
    11 find(sub{
    12     -f -x or return;
    12     -f -x or return;
    13     system("perl -Mblib -c $_ &>/dev/null");
    13     system("perl -Mblib -c $_ &>/dev/null");
    14     is($? => 0, "syntax $File::Find::name");
    14     is($? => 0, "syntax $File::Find::name");
    15 }, "blib/");
    15 }, "blib/");
    16 
       
    17 done_testing;