]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
test_common: key2sub: don't require final ';' in scripts
authorEric Wong <e@80x24.org>
Tue, 9 Jan 2024 11:39:25 +0000 (11:39 +0000)
committerEric Wong <e@80x24.org>
Wed, 10 Jan 2024 10:26:57 +0000 (10:26 +0000)
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

index d20bff28c575a06b14ce8ed2188cd2f97185f43e..25caaaa906881a1befaa93b983b597a667f3ebdb 100644 (file)
@@ -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;