]> wagnertech.de Git - mfinanz.git/blobdiff - t/007broken_links.t
AttrDuration: in SL::DB::Object->assign_attributes() auch attr_man_days_string()...
[mfinanz.git] / t / 007broken_links.t
index ee0021ef814bfda4b81a0db4258dbb5c9c106bcf..93148f4d4e01949476f18f3755e444958c40a421 100644 (file)
@@ -8,9 +8,13 @@
 
 use strict;
 use File::Find;
-use LWP::Simple;
-use Test::More tests => 1;
-use URI::Find;
+use Test::More;
+
+if (eval " use LWP::Simple; use URI::Find; 1 ") {
+  plan tests => 1;
+} else {
+  plan skip_all => "LWP::Simple or URI::Find not installed";
+}
 
 my @fails;
 
@@ -26,6 +30,7 @@ my $finder = URI::Find->new(sub {
 });
 
 find(sub {
+  return unless -f $File::Find::name;
   open(FH, $File::Find::name) or return;
   my $text;
   { local $/; $text = <FH>; }