[LTP] [PATCH] getitimer03.c: convert to new LTP API
Li Wang
liwang@redhat.com
Thu Jul 21 06:04:08 CEST 2022
Hi Avinesh,
Thank you for doing this. The code achievement is absolutely right but
we can do something unify to better manage the error test in LTP.
My suggestion is to combine this invalid-argument test into getitimer02.c
by creating a structure that populates with arguments of getitimer(). Then
we can traversal each item to complete all error tests for a syscall just
in one testcase. (see madvise02.c)
e.g.
static struct tcase {
int which;
struct itimerval *curr_value;
} tcases[] = {
{},
};
--
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20220721/0ccce2f9/attachment.htm>
More information about the ltp
mailing list