From: Eric Wong Date: Thu, 16 Jul 2020 21:54:24 +0000 (+0000) Subject: t/import: quiet warning, clobber variable X-Git-Tag: v1.6.0~235 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=f5efd110aab302b4eee83bd260dd9edac420539f;p=public-inbox.git t/import: quiet warning, clobber variable 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. --- diff --git a/t/import.t b/t/import.t index 9491f337..440e8994 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();