diff options
author | Eric Wong <e@80x24.org> | 2019-11-27 01:33:32 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-11-27 10:25:41 +0000 |
commit | 1e44ee6d429b853a7a87ae58e56241c55ab8c306 (patch) | |
tree | f9365f9a457cfa261a1a65fe4da5af3ff4db1fe7 /t/ds-kqxs.t | |
parent | d462440b512629fd8ef444ce105477fcab2ae6b1 (diff) | |
download | public-inbox-1e44ee6d429b853a7a87ae58e56241c55ab8c306.tar.gz |
Oops, IO::KQueue support was broken due to this missing constant. Add a new ds-kqxs.t test case to ensure we test the IO::KQueue path if IO::KQueue is available.
Diffstat (limited to 't/ds-kqxs.t')
-rw-r--r-- | t/ds-kqxs.t | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/ds-kqxs.t b/t/ds-kqxs.t new file mode 100644 index 00000000..785570c3 --- /dev/null +++ b/t/ds-kqxs.t @@ -0,0 +1,14 @@ +# Copyright (C) 2019 all contributors <meta@public-inbox.org> +# Licensed the same as Danga::Socket (and Perl5) +# License: GPL-1.0+ or Artistic-1.0-Perl +# <https://www.gnu.org/licenses/gpl-1.0.txt> +# <https://dev.perl.org/licenses/artistic.html> +use strict; +use Test::More; +unless (eval { require IO::KQueue }) { + my $m = $^O !~ /bsd/ ? 'DSKQXS is only for *BSD systems' + : "no IO::KQueue, skipping $0: $@"; + plan skip_all => $m; +} +local $ENV{TEST_IOPOLLER} = 'PublicInbox::DSKQXS'; +require './t/ds-poll.t'; |