[LTP] [PATCH] getsid01.c: Convert to new LTP API

Li Wang liwang@redhat.com
Wed Aug 31 08:35:32 CEST 2022


Hi Avinesh,

Avinesh Kumar <akumar@suse.de> wrote:


> -       for (lc = 0; TEST_LOOPING(lc); lc++) {
> -               /* reset tst_count in case we are looping */
> -               tst_count = 0;
> +       TEST(getsid(0));
> +       p_sid = TST_RET;
>

We'd better examine TST_RET not equal -1, otherwise, the test can
still report pass with two wrong values (-1) returned. isn't it?


> +               c_sid = TST_RET;
>

Here as well.


-- 
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20220831/987f537c/attachment.htm>


More information about the ltp mailing list