* [PATCH] selftests/clone3: test clone3 with exit signal in flags
@ 2023-05-04 8:59 Tobias Klauser
2023-05-04 11:20 ` Christian Brauner
0 siblings, 1 reply; 2+ messages in thread
From: Tobias Klauser @ 2023-05-04 8:59 UTC (permalink / raw)
To: Christian Brauner, Shuah Khan; +Cc: linux-kernel, linux-kselftest
Verify that calling clone3 with an exit signal (SIGCHLD) in flags will
fail.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
tools/testing/selftests/clone3/clone3.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tools/testing/selftests/clone3/clone3.c b/tools/testing/selftests/clone3/clone3.c
index e495f895a2cd..e60cf4da8fb0 100644
--- a/tools/testing/selftests/clone3/clone3.c
+++ b/tools/testing/selftests/clone3/clone3.c
@@ -129,7 +129,7 @@ int main(int argc, char *argv[])
uid_t uid = getuid();
ksft_print_header();
- ksft_set_plan(18);
+ ksft_set_plan(19);
test_clone3_supported();
/* Just a simple clone3() should return 0.*/
@@ -198,5 +198,8 @@ int main(int argc, char *argv[])
/* Do a clone3() in a new time namespace */
test_clone3(CLONE_NEWTIME, 0, 0, CLONE3_ARGS_NO_TEST);
+ /* Do a clone3() with exit signal (SIGCHLD) in flags */
+ test_clone3(SIGCHLD, 0, -EINVAL, CLONE3_ARGS_NO_TEST);
+
ksft_finished();
}
--
2.40.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] selftests/clone3: test clone3 with exit signal in flags
2023-05-04 8:59 [PATCH] selftests/clone3: test clone3 with exit signal in flags Tobias Klauser
@ 2023-05-04 11:20 ` Christian Brauner
0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2023-05-04 11:20 UTC (permalink / raw)
To: Tobias Klauser; +Cc: Shuah Khan, linux-kernel, linux-kselftest
On Thu, May 04, 2023 at 10:59:30AM +0200, Tobias Klauser wrote:
> Verify that calling clone3 with an exit signal (SIGCHLD) in flags will
> fail.
>
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
> ---
Thanks. Should probably go through the selftest tree,
Reviewed-by: Christian Brauner <brauner@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-05-04 11:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-04 8:59 [PATCH] selftests/clone3: test clone3 with exit signal in flags Tobias Klauser
2023-05-04 11:20 ` Christian Brauner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®