unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* [PATCH] t/epoll: explicitly use scalar operator for @events
@ 2021-03-29  5:19 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2021-03-29  5:19 UTC (permalink / raw)
  To: meta

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-29  5:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-29  5:19 [PATCH] t/epoll: explicitly use scalar operator for @events Eric Wong

unofficial mirror of meta@public-inbox.org

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/meta

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 meta meta/ https://yhetil.org/meta \
		meta@public-inbox.org
	public-inbox-index meta

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.mail.public-inbox.meta
	nntp://news.public-inbox.org/inbox.mail.public-inbox.meta
	nntp://news.gmane.io/gmane.mail.public-inbox.general


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git