diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2023-05-04 11:59:30 +0300 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2023-06-13 01:39:11 +0300 |
commit | c4f461a113ec3a523a0b5b35ed9ebd90d4145672 (patch) | |
tree | d5b0cac7fcce0703f97fb71b71695b328edaa972 /tools/testing/selftests/clone3 | |
parent | 375b9ff53cb6f9c042817b75f2be0a650626dc4f (diff) | |
download | linux-c4f461a113ec3a523a0b5b35ed9ebd90d4145672.tar.xz |
selftests/clone3: test clone3 with exit signal in flags
Verify that calling clone3 with an exit signal (SIGCHLD) in flags will
fail.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/clone3')
-rw-r--r-- | tools/testing/selftests/clone3/clone3.c | 5 |
1 files changed, 4 insertions, 1 deletions
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(); } |