user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* [PATCH] t/watch_maildir: quiet down spam check warning
@ 2016-07-01  2:37 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2016-07-01  2:37 UTC (permalink / raw)
  To: meta

Probably better than bloating our own API with configurable
warning streams and such...
---
 t/watch_maildir.t | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/t/watch_maildir.t b/t/watch_maildir.t
index 2138963..3969c80 100644
--- a/t/watch_maildir.t
+++ b/t/watch_maildir.t
@@ -94,7 +94,10 @@ More majordomo info at  http://vger.kernel.org/majordomo-info.html\n);
 	local $ENV{PATH} = $fail_path;
 	PublicInbox::Emergency->new($maildir)->prepare(\$msg);
 	$config->{'publicinboxwatch.spamcheck'} = 'spamc';
-	PublicInbox::WatchMaildir->new($config)->scan;
+	{
+		local $SIG{__WARN__} = sub {}; # quiet spam check warning
+		PublicInbox::WatchMaildir->new($config)->scan;
+	}
 	@list = $git->qx(qw(ls-tree -r --name-only refs/heads/master));
 	is(scalar @list, 0, 'tree has no files spamc checked');
 	is(unlink(glob("$maildir/new/*")), 1);
-- 
EW


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

only message in thread, other threads:[~2016-07-01  2:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-01  2:37 [PATCH] t/watch_maildir: quiet down spam check warning 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).