]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/watch_filter_rubylang.t
t/*.t: localize $SIG{__WARN__} changes
[public-inbox.git] / t / watch_filter_rubylang.t
index 72895d8595ccfbf97c8bf02b083ebe78bf283b23..09217d94fcfa368e1215ec0a53ad252d5f0cc440 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2019 all contributors <meta@public-inbox.org>
+# Copyright (C) 2019-2020 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 use strict;
 use warnings;
@@ -24,7 +24,7 @@ SKIP: {
 
 for my $v (@v) {
        my @warn;
-       $SIG{__WARN__} = sub { push @warn, @_ };
+       local $SIG{__WARN__} = sub { push @warn, @_ };
        my $cfgpfx = "publicinbox.$v";
        my $inboxdir = "$tmpdir/$v";
        my $maildir = "$tmpdir/md-$v";