From: Cyril Hrubis <chrubis@suse.cz>
To: Andrea Cervesato <andrea.cervesato@suse.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v2 5/8] syscalls: Add epoll_wait10
Date: Wed, 8 Jul 2026 20:51:18 +0200 [thread overview]
Message-ID: <ak6cJvCYTVfheJFA@yuki.lan> (raw)
In-Reply-To: <69f06327.050a0220.2201aa.058f@mx.google.com>
Hi!
> > +static void check_epoll_event(const char *desc)
> > +{
> > + struct epoll_event ret_ev;
> > + char buf[1024];
> > +
> > + TEST(epoll_wait(efd, &ret_ev, 1, 1000));
> > + if (TST_RET < 1) {
> > + tst_res(TFAIL | TTERRNO,
> > + "epoll_wait() after %s returned %li", desc, TST_RET);
>
> return; here.
Notice that we need to drain the notification a the bottom, so the best
we can do is goto drain;
> > + } else if (!(ret_ev.events & (EPOLLPRI | EPOLLERR))) {
> > + tst_res(TFAIL,
> > + "after %s: events %x, expected EPOLLPRI or EPOLLERR",
> > + desc, ret_ev.events);
> > + } else {
> > + tst_res(TPASS,
> > + "epoll_wait() reported event after %s", desc);
> > + }
>
> And here I would use TST_EXP_* instead. But feel free to ignore.
However I will shorten this part to TST_EXP_EXPR() so that we have only
one else branch.
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-07-08 18:51 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-23 12:03 [LTP] [PATCH v2 0/8] Add more epoll tests Cyril Hrubis
2026-04-23 12:03 ` [LTP] [PATCH v2 1/8] syscalls: Add epoll_create03 Cyril Hrubis
2026-04-23 12:41 ` Petr Vorel
2026-04-23 13:43 ` [LTP] " linuxtestproject.agent
2026-04-28 7:25 ` [LTP] [PATCH v2 1/8] " Andrea Cervesato via ltp
2026-04-23 12:03 ` [LTP] [PATCH v2 2/8] syscalls: Add epoll_wait08 Cyril Hrubis
2026-04-28 7:38 ` Andrea Cervesato via ltp
2026-04-23 12:03 ` [LTP] [PATCH v2 3/8] syscalls: Add epoll_wait09 Cyril Hrubis
2026-04-28 7:36 ` Andrea Cervesato via ltp
2026-04-23 12:03 ` [LTP] [PATCH v2 4/8] syscalls: Add epoll_ctl06 Cyril Hrubis
2026-04-27 2:26 ` Li Wang
2026-04-23 12:03 ` [LTP] [PATCH v2 5/8] syscalls: Add epoll_wait10 Cyril Hrubis
2026-04-28 7:34 ` Andrea Cervesato via ltp
2026-07-08 18:51 ` Cyril Hrubis [this message]
2026-04-23 12:03 ` [LTP] [PATCH v2 6/8] syscalls: Add epoll_wait11 Cyril Hrubis
2026-04-28 7:54 ` Andrea Cervesato via ltp
2026-04-23 12:03 ` [LTP] [PATCH v2 7/8] syscalls: Add epoll_wait12 Cyril Hrubis
2026-04-28 7:31 ` Andrea Cervesato via ltp
2026-07-09 8:36 ` Cyril Hrubis
2026-04-23 12:03 ` [LTP] [PATCH v2 8/8] syscalls: Remove old epoll-ltp test Cyril Hrubis
2026-05-07 13:20 ` Andrea Cervesato via ltp
2026-04-28 7:42 ` [LTP] [PATCH v2 0/8] Add more epoll tests Andrea Cervesato via ltp
2026-04-28 9:43 ` Cyril Hrubis
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ak6cJvCYTVfheJFA@yuki.lan \
--to=chrubis@suse.cz \
--cc=andrea.cervesato@suse.com \
--cc=ltp@lists.linux.it \
/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