about summary refs log tree commit homepage
path: root/t/v2writable.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-04-19 07:41:22 +0000
committerEric Wong <e@80x24.org>2019-05-06 19:12:15 +0000
commitce18b29d175ef5f01f05d59c95bcf8e0cd40e611 (patch)
tree576188ca61f8a2533e0d153baf7d66472a8921c8 /t/v2writable.t
parente1ed79d1e99e2c58b3edb370e60904cf656dd823 (diff)
downloadpublic-inbox-ce18b29d175ef5f01f05d59c95bcf8e0cd40e611.tar.gz
This can help users track down the source of warnings
when presented with imperfect emails.

While we're at it, make the __WARN__ callback in t/v2writable.t
a no-op since we don't check for warnings, there.
Diffstat (limited to 't/v2writable.t')
-rw-r--r--t/v2writable.t3
1 files changed, 1 insertions, 2 deletions
diff --git a/t/v2writable.t b/t/v2writable.t
index f1714175..2826513b 100644
--- a/t/v2writable.t
+++ b/t/v2writable.t
@@ -253,10 +253,9 @@ EOF
 }
 
 {
-        my @warn;
         my $x = 'x'x250;
         my $y = 'y'x250;
-        local $SIG{__WARN__} = sub { push @warn, @_ };
+        local $SIG{__WARN__} = sub {};
         $mime->header_set('Subject', 'long mid');
         $mime->header_set('Message-ID', "<$x>");
         ok($im->add($mime), 'add excessively long Message-ID');