user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* [PATCH] t/import: quiet warning, clobber variable
@ 2020-07-16 21:54 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2020-07-16 21:54 UTC (permalink / raw)
  To: meta

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 <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();

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-16 21:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-16 21:54 [PATCH] t/import: quiet warning, clobber variable Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).