From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: meta@public-inbox.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 8FC7B20A21; Mon, 25 Apr 2016 12:02:22 +0000 (UTC) Date: Mon, 25 Apr 2016 12:02:22 +0000 From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 4/3] t/feed.t: run properly without ssoma installed Message-ID: <20160425120222.GA8391@dcvr.yhbt.net> References: <20160425095247.17472-1-e@80x24.org> <20160425095247.17472-3-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160425095247.17472-3-e@80x24.org> List-Id: While we're at it, update some references to ssoma in the Makefile.PL comment. --- Makefile.PL | 4 ++-- t/feed.t | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 904b6ad..1948848 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 906552e..61f0dc7 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); -- EW