Ping. :) Best regards, Zeng On Mon, 2014-06-30 at 16:18 +0800, Zeng Linggang wrote: > * Add new ECHILD errno test for waitid(2) > idtype and id (waitid()) is not a child of the calling process. > > * Cleanup: remove an useless tst_exit() > > * Add tst_count = 0 > > Signed-off-by: Zeng Linggang <zenglg...@cn.fujitsu.com> > --- > testcases/kernel/syscalls/waitid/waitid02.c | 15 ++++++++++++--- > 1 file changed, 12 insertions(+), 3 deletions(-) > > diff --git a/testcases/kernel/syscalls/waitid/waitid02.c > b/testcases/kernel/syscalls/waitid/waitid02.c > index 3806655..6259fa3 100644 > --- a/testcases/kernel/syscalls/waitid/waitid02.c > +++ b/testcases/kernel/syscalls/waitid/waitid02.c > @@ -130,6 +130,16 @@ struct testcase_t tdat[] = { > .setup = setup6, > .cleanup = cleanup6 > }, > + { > + .msg = "P_PID, WEXITED not a child of the calling process", > + .idtype = P_PID, > + .id = 1, > + .options = WEXITED, > + .exp_ret = -1, > + .exp_errno = ECHILD, > + .setup = setup2, > + .cleanup = cleanup2 > + }, > > }; > > @@ -281,13 +291,12 @@ int main(int ac, char **av) > const char *msg; > > msg = parse_opts(ac, av, NULL, NULL); > - if (msg != NULL) { > + if (msg != NULL) > tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg); > - tst_exit(); > - } > > setup(); > for (lc = 0; TEST_LOOPING(lc); ++lc) { > + tst_count = 0; > for (testno = 0; testno < TST_TOTAL; testno++) > test_waitid(&tdat[testno]); > }
------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list