From: Eric Wong Date: Tue, 9 Jan 2024 11:39:25 +0000 (+0000) Subject: test_common: key2sub: don't require final ';' in scripts X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbdc0b877f0c8f04ad8eb107cfbb17897d33391b;p=thirdparty%2Fpublic-inbox.git test_common: key2sub: don't require final ';' in scripts 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'. --- diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index d20bff28c..25caaaa90 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;