projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 2008 Lieferdatum in Gutschrift
[kivitendo-erp.git]
/
t
/
007broken_links.t
diff --git
a/t/007broken_links.t
b/t/007broken_links.t
index
ee0021e
..
93148f4
100644
(file)
--- a/
t/007broken_links.t
+++ b/
t/007broken_links.t
@@
-8,9
+8,13
@@
use strict;
use File::Find;
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;
my @fails;
@@
-26,6
+30,7
@@
my $finder = URI::Find->new(sub {
});
find(sub {
});
find(sub {
+ return unless -f $File::Find::name;
open(FH, $File::Find::name) or return;
my $text;
{ local $/; $text = <FH>; }
open(FH, $File::Find::name) or return;
my $text;
{ local $/; $text = <FH>; }