From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 804271F51A for ; Tue, 9 Jan 2024 11:39:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1704800369; bh=23hFGLRubJLg8joUcSEhfmkmYzTa7m8uvdSBRN7L3Ng=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Tv/V+Z0w75S/2rHJLXOdtoHjL9yoPc61p29l4t588Y7QdD7HA/QbCb/yz755L1bvY nhZq8khvZDt2BPLM++rJ6ocFI4i93bAwaWYgX3m9FxRPTEcgRaPvcL1PzgjROfJxiP Asb+E28TQEwNyrRcxDuNCP4oiMhYf/N/ouwyoXVs= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 3/6] test_common: key2sub: don't require final ';' in scripts Date: Tue, 9 Jan 2024 11:39:25 +0000 Message-Id: <20240109113928.992464-4-e@80x24.org> In-Reply-To: <20240109113928.992464-1-e@80x24.org> References: <20240109113928.992464-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: I noticed this when I wrote a new (but probably unnecessary) *.t test and `make check-run' failed since I omitted the final semi-colon after `done_testing'. --- lib/PublicInbox/TestCommon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index d20bff28..25caaaa9 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -342,7 +342,7 @@ use subs qw(exit); sub main { # the below "line" directive is a magic comment, see perlsyn(1) manpage # line 1 "$f" -$str +{ $str } 0; } 1;