[LTP] [PATCH v3] userfaultfd: Minor fixes
Andrea Cervesato
andrea.cervesato@suse.com
Mon Mar 30 09:58:06 CEST 2026
Hi!
> if (msg.event != UFFD_EVENT_PAGEFAULT)
> - tst_brk(TFAIL, "Received unexpected UFFD_EVENT %d", msg.event);
> + tst_brk(TFAIL | TERRNO, "Received unexpected UFFD_EVENT %d", msg.event);
Looking closer..
TERRNO here is not needed. At this point SAFE_READ() passed and we are going
to print the errno from a previous failing call (most probably from a previous
`-i` iteration) if we receive the wrong event.
We can fix before merge if other accept this review.
Reviewed-by: Andrea Cervesato <andrea.cervesato@suse.com>
Regards,
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
More information about the ltp
mailing list