From: Eric Wong Date: Mon, 25 Apr 2016 11:52:44 +0000 (+0000) Subject: t/feed.t: run properly without ssoma installed X-Git-Tag: v1.0.0~583 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=e631b6bd914d8fb6826f1d8f8352785e53961048 t/feed.t: run properly without ssoma installed While we're at it, update some references to ssoma in the Makefile.PL comment. --- diff --git a/Makefile.PL b/Makefile.PL index 904b6adf..1948848f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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, diff --git a/t/feed.t b/t/feed.t index 906552e5..61f0dc72 100644 --- 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);