diff options
author | Eric Wong <e@yhbt.net> | 2020-04-11 10:53:29 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-04-15 10:16:05 +0000 |
commit | daab9cf0b8fcd66d1cb7f62f7ea9a8b0e32320ef (patch) | |
tree | 1c6cc11ff1b04c95ffa33b372d994845adab285b /t/nntpd.t | |
parent | 6d10213d5121ac6b71221acff3caa68ba9a8bc52 (diff) | |
download | public-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/nntpd.t')
-rw-r--r-- | t/nntpd.t | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -268,7 +268,7 @@ Date: Fri, 02 Oct 1993 00:00:00 +0000 $for_leafnode->header_set('Message-ID', @mids); $for_leafnode->body_set('not-a-dupe'); my $warn = ''; - $SIG{__WARN__} = sub { $warn .= join('', @_) }; + local $SIG{__WARN__} = sub { $warn .= join('', @_) }; $im->add($for_leafnode); $im->done; like($warn, qr/reused/, 'warned for reused MID'); |