]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/epoll: explicitly use scalar operator for @events
authorEric Wong <e@yhbt.net>
Mon, 29 Mar 2021 05:19:03 +0000 (05:19 +0000)
committerEric Wong <e@80x24.org>
Mon, 29 Mar 2021 07:05:54 +0000 (03:05 -0400)
It's slightly easier to test on a machine without Test::More
and I'm hand-rolling my own is() and ok() subs.

t/epoll.t

index a1e73e07387d8cd74e1813ab06d312d7f2a1ae8c..f2a68904a5b3ceb221746c18f7c180c84805f267 100644 (file)
--- a/t/epoll.t
+++ b/t/epoll.t
@@ -17,6 +17,6 @@ is(scalar(@events), 1, 'got one event');
 is($events[0], fileno($w), 'got expected FD');
 close $w;
 epoll_wait($epfd, 100, 0, \@events);
-is(@events, 0, 'epoll_wait timeout');
+is(scalar(@events), 0, 'epoll_wait timeout');
 
 done_testing;