From: Jan Stancek <jstancek@redhat.com>
To: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Cc: ltp-list <ltp-list@lists.sourceforge.net>
Subject: Re: [LTP] [PATCH] waitid/waitid02.c: Add new ECHILD errno test
Date: Mon, 30 Jun 2014 04:38:26 -0400 (EDT) [thread overview]
Message-ID: <982989271.447892.1404117506779.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <1404116297.3148.7.camel@G08JYZSD130126>
----- Original Message -----
> From: "Zeng Linggang" <zenglg.jy@cn.fujitsu.com>
> To: "ltp-list" <ltp-list@lists.sourceforge.net>
> Sent: Monday, 30 June, 2014 10:18:17 AM
> Subject: [LTP] [PATCH] waitid/waitid02.c: Add new ECHILD errno test
>
> * 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.jy@cn.fujitsu.com>
Hi,
looks good to me. I'm assuming the reason for setup/cleanup
is that you wanted some unrelated child to be present.
Regards,
Jan
> ---
> 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]);
> }
> --
> 1.9.3
>
>
>
>
> ------------------------------------------------------------------------------
> Open source business process management suite built on Java and Eclipse
> Turn processes into business applications with Bonita BPM Community Edition
> Quickly connect people, data, and systems into organized workflows
> Winner of BOSSIE, CODIE, OW2 and Gartner awards
> http://p.sf.net/sfu/Bonitasoft
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
>
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2014-06-30 8:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-30 8:18 [LTP] [PATCH] waitid/waitid02.c: Add new ECHILD errno test Zeng Linggang
2014-06-30 8:38 ` Jan Stancek [this message]
2014-06-30 9:30 ` Zeng Linggang
2014-08-06 11:20 ` chrubis
2014-08-06 10:19 ` Zeng Linggang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=982989271.447892.1404117506779.JavaMail.zimbra@redhat.com \
--to=jstancek@redhat.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=zenglg.jy@cn.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.