]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/mda_filter_rubylang.t
t/*.t: localize $SIG{__WARN__} changes
[public-inbox.git] / t / mda_filter_rubylang.t
index dbcb275b397d470fa9cfdbc362d6d89fde658f8a..6f288b7ebbfb4075eb51cf77853a01791e18e104 100644 (file)
@@ -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";