[LTP] [PATCH v3 1/3] lib/tests: Add test for testing tst_res() flags
Cyril Hrubis
chrubis@suse.cz
Thu Dec 14 10:09:34 CET 2023
Hi!
> > Maybe it would make sense the loop over the flags here instead, so that
> > we don't have to produce second TPASS message.
>
> I'm not sure if I follow you. I wanted to use the flag in tst_res(),
> but for these two there would be tst_brk(TBROK) due missing result.
I mean that if we put TBROK last in the array we can do:
for (i = 0; i < ARRAY_SIZE(...); i++)
tst_res(....);
I.e. loop over all the flags in a single call of the function, which
would mean that we do not have to add artificial TPASS at the end.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list