X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fsigfd.t;h=8daf3137427b5f2dfd64fcdbcb2e81f3e88a0b1b;hb=d73d783ab2cf14ba28ca63723223d8c85a68cdd5;hp=34f30de8ec36f8d5351bac759517aa1c918a3645;hpb=d6674af04cb74a4efd513d938bed8bf7ab2838eb;p=public-inbox.git
diff --git a/t/sigfd.t b/t/sigfd.t
index 34f30de8..8daf3137 100644
--- a/t/sigfd.t
+++ b/t/sigfd.t
@@ -1,10 +1,10 @@
-# Copyright (C) 2019 all contributors
+# Copyright (C) 2019-2020 all contributors
use strict;
use Test::More;
use IO::Handle;
use POSIX qw(:signal_h);
use Errno qw(ENOSYS);
-use PublicInbox::Syscall qw(SFD_NONBLOCK);
+use PublicInbox::Syscall qw($SFD_NONBLOCK);
require_ok 'PublicInbox::Sigfd';
SKIP: {
@@ -42,8 +42,8 @@ SKIP: {
}
$sigfd = undef;
- my $nbsig = PublicInbox::Sigfd->new($sig, SFD_NONBLOCK);
- ok($nbsig, 'Sigfd->new SFD_NONBLOCK works');
+ my $nbsig = PublicInbox::Sigfd->new($sig, $SFD_NONBLOCK);
+ ok($nbsig, 'Sigfd->new $SFD_NONBLOCK works');
is($nbsig->wait_once, undef, 'nonblocking ->wait_once');
ok($! == Errno::EAGAIN, 'got EAGAIN');
kill('HUP', $$) or die "kill $!";