]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 930870: With Pod::Coverage 0.23, t/011pod.t fails if a module is not installed
authorFrédéric Buclin <LpSolit@gmail.com>
Mon, 28 Oct 2013 14:37:54 +0000 (15:37 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 28 Oct 2013 14:37:54 +0000 (15:37 +0100)
r/a=glob

t/011pod.t

index 7709ade16d99e4681d9a13178983ffd20b61821c..37cd2da37ece2845a8093d482e57168d03001cd9 100644 (file)
@@ -104,9 +104,9 @@ foreach my $file (@module_files) {
                   ". Undocumented methods: " . join(', ', $cover->uncovered));
         }
     }
-    # This error is thrown when the module couldn't be loaded due to
+    # These errors are thrown when the module couldn't be loaded due to
     # a missing dependency.
-    elsif ($reason eq "no public symbols defined") {
+    elsif ($reason =~ /^(?:no public symbols defined|requiring '[^']+' failed)$/) {
         ok(1, "$file cannot be loaded");
     }
     elsif ($reason eq "couldn't find pod") {