]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/nntp.t: skip if Data::Dumper is missing
authorEric Wong <e@80x24.org>
Tue, 14 May 2019 03:32:02 +0000 (03:32 +0000)
committerEric Wong <e@80x24.org>
Tue, 14 May 2019 03:43:27 +0000 (03:43 +0000)
We can revisit this, later; but Data::Dumper requires a separate
package for CentOS-7 users, at least.

t/nntp.t

index 47b14422af29ab3f39677d913d25b01a3f9bc182..c4b9737c7a556a9f582b0609ed4f915ac33a4c28 100644 (file)
--- a/t/nntp.t
+++ b/t/nntp.t
@@ -3,9 +3,8 @@
 use strict;
 use warnings;
 use Test::More;
-use Data::Dumper;
 
-foreach my $mod (qw(DBD::SQLite Search::Xapian)) {
+foreach my $mod (qw(DBD::SQLite Search::Xapian Data::Dumper)) {
        eval "require $mod";
        plan skip_all => "$mod missing for nntp.t" if $@;
 }
@@ -15,7 +14,7 @@ use_ok 'PublicInbox::Inbox';
 
 {
        sub quote_str {
-               my (undef, $s) = split(/ = /, Dumper($_[0]), 2);
+               my (undef, $s) = split(/ = /, Data::Dumper::Dumper($_[0]), 2);
                $s =~ s/;\n//;
                $s;
        }