Merge remote branch 'kc/new/bug_5386' into kcmaster
authorChris Cormack <chrisc@catalyst.net.nz>
Thu, 11 Nov 2010 17:41:25 +0000 (06:41 +1300)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Thu, 11 Nov 2010 17:52:41 +0000 (12:52 -0500)
(cherry picked from commit af1d8290317d7602616d7269fd40109ccf8a3f8d)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
t/00-load.t

index 6b3172c..b5c7181 100644 (file)
@@ -3,23 +3,22 @@
 use strict;
 use warnings;
 use Test::More;
-use Path::Class;
+use File::Spec;
 use File::Find;
 
-my $lib = dir('C4')->absolute->resolve;
+my $lib = File::Spec->rel2abs('C4');
 find({
     bydepth => 1,
     no_chdir => 1,
     wanted => sub {
         my $m = $_;
-       return unless $m =~ s/[.]pm$//;
-       return if $m =~ /Auth_with_ldap/; # Dont test this, it will fail on use
-       return if $m =~ /Cache/; # Cache modules are a WIP, add the tests back when we are using them more
-       return if $m =~ /SIP/; # SIP modules will not load clean
-       $m =~ s{^.*/C4/}{C4/};  
-       $m =~ s{/}{::}g;
-       use_ok($m) || BAIL_OUT("***** PROBLEMS LOADING FILE '$m'");
+           return unless $m =~ s/[.]pm$//;
+           return if $m =~ /Auth_with_ldap/; # Dont test this, it will fail on use
+           return if $m =~ /Cache/; # Cache modules are a WIP, add the tests back when we are using them more
+           return if $m =~ /SIP/; # SIP modules will not load clean
+           $m =~ s{^.*/C4/}{C4/};      
+           $m =~ s{/}{::}g;
+           use_ok($m) || BAIL_OUT("***** PROBLEMS LOADING FILE '$m'");
     },
 }, $lib);
 done_testing();
-