From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 9D6E71F5AE for ; Thu, 16 Jul 2020 21:54:24 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] t/import: quiet warning, clobber variable Date: Thu, 16 Jul 2020 21:54:24 +0000 Message-Id: <20200716215424.11017-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: The eval in key2sub via t/run.perl ("make check-run") won't trigger the warning, but running "prove -bvw t/import.t" directly, does. In any case, ensure the contents of this variable doesn't linger across runs. --- t/import.t | 1 + 1 file changed, 1 insertion(+) diff --git a/t/import.t b/t/import.t index 9491f3374..440e8994a 100644 --- a/t/import.t +++ b/t/import.t @@ -126,5 +126,6 @@ like($$bref, qr/^author Ba d \$main::badchars /sm, 'latest commit accepted by spammer'); $git->qx(qw(fsck --no-progress --strict)); is($?, 0, 'fsck reported no errors'); +$main::badchars = undef; done_testing();