From: Eric Wong Date: Sun, 22 Dec 2019 03:54:46 +0000 (+0000) Subject: testcommon: require_git: use "plan" from Test::More X-Git-Tag: v1.3.0~206 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=3f7c0003047a81375d5a6f8c0633a43893d75cc1;hp=5c46cd1b3aa2421ef1e1b794b1c2358898cdf37a;p=public-inbox.git testcommon: require_git: use "plan" from Test::More require_git is no longer in the "::main" namespace, so we must call Test::More::plan() explicitly. --- diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index 2828c0d0..372cafa6 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -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; }