Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Tobias Klauser and committed by
Shuah Khan
c4f461a1 375b9ff5

+4 -1
+4 -1
tools/testing/selftests/clone3/clone3.c
··· 129 129 uid_t uid = getuid(); 130 130 131 131 ksft_print_header(); 132 - ksft_set_plan(18); 132 + ksft_set_plan(19); 133 133 test_clone3_supported(); 134 134 135 135 /* Just a simple clone3() should return 0.*/ ··· 197 197 198 198 /* Do a clone3() in a new time namespace */ 199 199 test_clone3(CLONE_NEWTIME, 0, 0, CLONE3_ARGS_NO_TEST); 200 + 201 + /* Do a clone3() with exit signal (SIGCHLD) in flags */ 202 + test_clone3(SIGCHLD, 0, -EINVAL, CLONE3_ARGS_NO_TEST); 200 203 201 204 ksft_finished(); 202 205 }