[LTP] [PATCH] getitimer01.c: convert to new LTP API
Li Wang
liwang@redhat.com
Thu Jul 21 09:07:32 CEST 2022
Hi Avinesh,
Avinesh Kumar <akumar@suse.de> wrote:
> + for (i = 0; i < 3; i++) {
> + TST_EXP_PASS(getitimer(itimer_name[i], &value));
> + TST_EXP_EQ_LI(value.it_value.tv_sec, 0);
> + TST_EXP_EQ_LI(value.it_value.tv_usec, 0);
>
This is just to verify getittimer() works well when there is none
of a specific interval timer being set.
Maybe we can add some more tests to check if it fully implements
the documented behavior? Or, at least confirming it gets expected
signals for different types of timers-specified is also necessary.
ITIMER_REAL: At each expiration, a SIGALRM signal is generated.
ITIMER_VIRTUAL : At each expiration, a SIGVTALRM signal is generated.
ITIMER_PROF: At each expiration, a SIGPROF signal is generated.
see: https://man7.org/linux/man-pages/man2/setitimer.2.html
--
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20220721/9e6b1bba/attachment.htm>
More information about the ltp
mailing list