From: Wanlong Gao <gaowanlong@cn.fujitsu.com>
To: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH 2/2 v2] checkpoints: fix usage in children started via exec
Date: Tue, 7 Oct 2014 08:45:52 +0800 [thread overview]
Message-ID: <543337C0.90906@cn.fujitsu.com> (raw)
In-Reply-To: <6cf14ee28f2a6fc0a131eeecd0f500214ed1f512.1412604688.git.jstancek@redhat.com>
On 10/06/2014 10:55 PM, Jan Stancek wrote:
> creat07 and setpgid03 are currently failing in following way:
> CHILD: Failed to open fifo '': No such file or directory at creat07_child.c:31
> creat07 1 TBROK : tst_checkpoint.c:126: Checkpoint timeouted after 5000 msecs at creat07.c:78
> creat07 2 TBROK : tst_checkpoint.c:126: Remaining cases broken
>
> These testcases start children via exec, so only initialize
> checkpoint struct, FIFO has been already created by parent.
>
> Signed-off-by: Jan Stancek <jstancek@redhat.com>
Tested-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
> ---
> testcases/kernel/syscalls/creat/creat07_child.c | 8 ++++++--
> .../kernel/syscalls/setpgid/setpgid03_child.c | 8 +++++++-
> 2 files changed, 13 insertions(+), 3 deletions(-)
>
> diff --git a/testcases/kernel/syscalls/creat/creat07_child.c b/testcases/kernel/syscalls/creat/creat07_child.c
> index f3e6aa0..1641601 100644
> --- a/testcases/kernel/syscalls/creat/creat07_child.c
> +++ b/testcases/kernel/syscalls/creat/creat07_child.c
> @@ -24,10 +24,14 @@
>
> char *TCID = "creat07_child";
>
> -static struct tst_checkpoint checkpoint = {.timeout = 5, .retval = 1};
> -
> int main(void)
> {
> + struct tst_checkpoint checkpoint;
> +
> + /* we are already in tmpdir, so only initialize checkpoint,
> + * fifo has been created by parent already. */
> + TST_CHECKPOINT_INIT(&checkpoint);
> +
> TST_CHECKPOINT_SIGNAL_PARENT(&checkpoint);
>
> for (;;) {
> diff --git a/testcases/kernel/syscalls/setpgid/setpgid03_child.c b/testcases/kernel/syscalls/setpgid/setpgid03_child.c
> index c4cf892..c9ea87f 100644
> --- a/testcases/kernel/syscalls/setpgid/setpgid03_child.c
> +++ b/testcases/kernel/syscalls/setpgid/setpgid03_child.c
> @@ -20,10 +20,16 @@
>
> char *TCID = "setpgid03_child";
>
> -static struct tst_checkpoint checkpoint = { .timeout = 10000, .retval = 1};
>
> int main(void)
> {
> + struct tst_checkpoint checkpoint;
> +
> + /* we are already in tmpdir, so only initialize checkpoint,
> + * fifo has been created by parent already. */
> + TST_CHECKPOINT_INIT(&checkpoint);
> + checkpoint.timeout = 10000;
> +
> TST_CHECKPOINT_SIGNAL_PARENT(&checkpoint);
> TST_CHECKPOINT_CHILD_WAIT(&checkpoint);
>
>
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2014-10-07 0:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-06 14:55 [LTP] [PATCH 1/2 v2] checkpoints: introduce TST_CHECKPOINT_CREATE Jan Stancek
2014-10-06 14:55 ` [LTP] [PATCH 2/2 v2] checkpoints: fix usage in children started via exec Jan Stancek
2014-10-07 0:45 ` Wanlong Gao [this message]
2014-10-07 11:50 ` Cyril Hrubis
[not found] ` <588690077.5122647.1412683247596.JavaMail.zimbra@redhat.com>
2014-10-07 12:10 ` Cyril Hrubis
2014-10-07 0:43 ` [LTP] [PATCH 1/2 v2] checkpoints: introduce TST_CHECKPOINT_CREATE Wanlong Gao
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=543337C0.90906@cn.fujitsu.com \
--to=gaowanlong@cn.fujitsu.com \
--cc=ltp-list@lists.sourceforge.net \
/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.