From dbdc0b877f0c8f04ad8eb107cfbb17897d33391b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 9 Jan 2024 11:39:25 +0000 Subject: 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'. --- 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; -- cgit v1.2.3-24-ge0c7