]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/hl_mod: document IO::Handle for autoflush
authorEric Wong <e@yhbt.net>
Sun, 26 Jan 2020 10:29:23 +0000 (10:29 +0000)
committerEric Wong <e@yhbt.net>
Tue, 28 Jan 2020 01:49:51 +0000 (01:49 +0000)
We don't need IO::File for this test, but IO::Handle
is needed for ->autoflush with Perl <5.14.

Note: I haven't tested highlight.pm under 5.10.1 since
it's a weird dependency which isn't easy to install w/o
distro support.

t/hl_mod.t

index 4942404c9e1b22a3b4ee50e6763d0887aeb441c1..351dfe225c12204ae4e36bb6478ab94d1e7e688d 100644 (file)
@@ -5,6 +5,7 @@ use strict;
 use warnings;
 use Test::More;
 use PublicInbox::Spawn qw(which spawn);
+use IO::Handle; # ->autoflush
 use Fcntl qw(:seek);
 eval { require highlight } or
        plan skip_all => "failed to load highlight.pm for $0";