projects
/
public-inbox.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
165eabb
)
t/epoll: explicitly use scalar operator for @events
author
Eric Wong <e@yhbt.net>
Mon, 29 Mar 2021 05:19:03 +0000 (
05:19
+0000)
committer
Eric 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
patch
|
blob
|
history
diff --git
a/t/epoll.t
b/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;