about summary refs log tree commit homepage
path: root/t/mda_filter_rubylang.t
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-04-11 10:53:29 +0000
committerEric Wong <e@yhbt.net>2020-04-15 10:16:05 +0000
commitdaab9cf0b8fcd66d1cb7f62f7ea9a8b0e32320ef (patch)
tree1c6cc11ff1b04c95ffa33b372d994845adab285b /t/mda_filter_rubylang.t
parent6d10213d5121ac6b71221acff3caa68ba9a8bc52 (diff)
downloadpublic-inbox-daab9cf0b8fcd66d1cb7f62f7ea9a8b0e32320ef.tar.gz
We don't want to propagate %SIG changes to other tests when
running multiple tests within the same process via t/run.perl.
Diffstat (limited to 't/mda_filter_rubylang.t')
-rw-r--r--t/mda_filter_rubylang.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/mda_filter_rubylang.t b/t/mda_filter_rubylang.t
index dbcb275b..6f288b7e 100644
--- a/t/mda_filter_rubylang.t
+++ b/t/mda_filter_rubylang.t
@@ -18,7 +18,7 @@ is(system(@cfg, 'publicinboxmda.spamcheck', 'none'), 0);
 
 for my $v (qw(V1 V2)) {
         my @warn;
-        $SIG{__WARN__} = sub { push @warn, @_ };
+        local $SIG{__WARN__} = sub { push @warn, @_ };
         my $cfgpfx = "publicinbox.$v";
         my $inboxdir = "$tmpdir/$v";
         my $addr = "test-$v\@example.com";