]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/feed.t: run properly without ssoma installed
authorEric Wong <e@80x24.org>
Mon, 25 Apr 2016 11:52:44 +0000 (11:52 +0000)
committerEric Wong <e@80x24.org>
Mon, 25 Apr 2016 12:01:10 +0000 (12:01 +0000)
While we're at it, update some references to ssoma in the
Makefile.PL comment.

Makefile.PL
t/feed.t

index 904b6adfc04110b6adbb61f5423739723d4402ec..1948848f3d2d54d5b63e30cc355ae9ac7c7d6a00 100644 (file)
@@ -14,8 +14,8 @@ WriteMakefile(
        ABSTRACT => 'public-inbox server infrastructure',
        EXE_FILES => \@EXE_FILES,
        PREREQ_PM => {
-               # note: we use ssoma(1) and spamc(1), NOT the Perl modules
-               # We also depend on git through ssoma.
+               # note: we use spamc(1), NOT the Perl modules
+               # We also depend on git.
                # Keep this sorted and synced to the INSTALL document
                'Date::Parse' => 0,
                'Email::Address' => 0,
index 906552e5b853458bc839be7667b65a7aa76b4fd3..61f0dc724328931da52daacac90b2ac8fd7362a0 100644 (file)
--- a/t/feed.t
+++ b/t/feed.t
@@ -33,7 +33,8 @@ sub rand_use ($) {
                }
                $SSOMA{$cmd} = $x;
        }
-       (($x > 0 && (int(rand(10)) % 2) == 1) || $x < 0);
+       return if $x < 0;
+       ($x > 0 && (int(rand(10)) % 2) == 1);
 }
 
 my $tmpdir = tempdir('pi-feed-XXXXXX', TMPDIR => 1, CLEANUP => 1);