]> Sergey Matveev's repositories - public-inbox.git/commitdiff
testcommon: require_git: use "plan" from Test::More
authorEric Wong <e@80x24.org>
Sun, 22 Dec 2019 03:54:46 +0000 (03:54 +0000)
committerEric Wong <e@80x24.org>
Sun, 22 Dec 2019 03:55:06 +0000 (03:55 +0000)
require_git is no longer in the "::main" namespace, so we must
call Test::More::plan() explicitly.

lib/PublicInbox/TestCommon.pm

index 2828c0d012f22cd864553b84503f1257591c1b9d..372cafa60d3e38b6eedc22325b2b64423185f007 100644 (file)
@@ -53,7 +53,8 @@ sub require_git ($;$) {
        my $cur_int = ($cur_maj << 24) | ($cur_min << 16);
        if ($cur_int < $req_int) {
                return 0 if $maybe;
-               plan(skip_all => "git $req+ required, have $cur_maj.$cur_min");
+               Test::More::plan(skip_all =>
+                               "git $req+ required, have $cur_maj.$cur_min");
        }
        1;
 }