Commit c4f461a1 authored by Tobias Klauser's avatar Tobias Klauser Committed by Shuah Khan
Browse files

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: default avatarTobias Klauser <tklauser@distanz.ch>
Reviewed-by: default avatarChristian Brauner <brauner@kernel.org>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 375b9ff5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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();
}