From: Eric Wong <e@yhbt.net>
To: meta@public-inbox.org
Subject: [PATCH] t/epoll: explicitly use scalar operator for @events
Date: Mon, 29 Mar 2021 05:19:03 +0000 [thread overview]
Message-ID: <20210329051903.17751-1-e@yhbt.net> (raw)
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/epoll.t b/t/epoll.t
index a1e73e07..f2a68904 100644
--- 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;
reply other threads:[~2021-03-29 5:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210329051903.17751-1-e@yhbt.net \
--to=e@yhbt.net \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).