From: Cyril Hrubis <chrubis@suse.cz>
To: Andrea Cervesato <andrea.cervesato@suse.de>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v7] Refactor fork05 using new LTP API
Date: Thu, 12 Sep 2024 15:38:45 +0200 [thread overview]
Message-ID: <ZuLu5QFV03-FKV-2@yuki.lan> (raw)
In-Reply-To: <20240911150635.20545-1-andrea.cervesato@suse.de>
Hi!
Now it compiles fine but stil needs this to run:
diff --git a/testcases/kernel/syscalls/fork/fork05.c b/testcases/kernel/syscalls/fork/fork05.c
index 89dc38916..dc77b7560 100644
--- a/testcases/kernel/syscalls/fork/fork05.c
+++ b/testcases/kernel/syscalls/fork/fork05.c
@@ -104,14 +104,15 @@ static void run(void)
SAFE_WAITPID(pid, &status, 0);
- if (WIFEXITED(status) && WEXITSTATUS(status))
+ if (WIFEXITED(status) && WEXITSTATUS(status) == 0)
tst_res(TPASS, "Child did exit with 0");
else
tst_res(TFAIL, "Child %s", tst_strstatus(status));
}
static struct tst_test test = {
- .test_all = run
+ .test_all = run,
+ .forks_child = 1,
};
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
prev parent reply other threads:[~2024-09-12 13:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-11 15:06 [LTP] [PATCH v7] Refactor fork05 using new LTP API Andrea Cervesato
2024-09-12 13:38 ` Cyril Hrubis [this message]
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=ZuLu5QFV03-FKV-2@yuki.lan \
--to=chrubis@suse.cz \
--cc=andrea.cervesato@suse.de \
--cc=ltp@lists.linux.it \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox