]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/import: quiet warning, clobber variable
authorEric Wong <e@yhbt.net>
Thu, 16 Jul 2020 21:54:24 +0000 (21:54 +0000)
committerEric Wong <e@yhbt.net>
Fri, 17 Jul 2020 18:54:59 +0000 (18:54 +0000)
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

index 9491f337484189418662fd76b3d5f52162c3cd39..440e8994a7b9cba615d5622646efbb95e608e20d 100644 (file)
@@ -126,5 +126,6 @@ like($$bref, qr/^author Ba d \$main::badchars <spammer\@example\.com> /sm,
         'latest commit accepted by spammer');
 $git->qx(qw(fsck --no-progress --strict));
 is($?, 0, 'fsck reported no errors');
+$main::badchars = undef;
 
 done_testing();