Commit 51ad5b54 authored by Kees Cook's avatar Kees Cook Committed by Shuah Khan
Browse files

selftests/clone3: Reorder reporting output



Selftest output reporting was happening before the TAP headers and plan
had been emitted. Move the first test reports later.

Acked-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 63aa57f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -131,9 +131,9 @@ int main(int argc, char *argv[])

	uid_t uid = getuid();

	test_clone3_supported();
	ksft_print_header();
	ksft_set_plan(17);
	test_clone3_supported();

	/* Just a simple clone3() should return 0.*/
	test_clone3(0, 0, 0, CLONE3_ARGS_NO_TEST);
+1 −2
Original line number Diff line number Diff line
@@ -119,9 +119,8 @@ static void test_clone3_clear_sighand(void)
int main(int argc, char **argv)
{
	ksft_print_header();
	test_clone3_supported();

	ksft_set_plan(1);
	test_clone3_supported();

	test_clone3_clear_sighand();

+1 −1
Original line number Diff line number Diff line
@@ -157,8 +157,8 @@ int main(int argc, char *argv[])
	pid_t set_tid[MAX_PID_NS_LEVEL * 2];

	ksft_print_header();
	test_clone3_supported();
	ksft_set_plan(29);
	test_clone3_supported();

	if (pipe(pipe_1) < 0 || pipe(pipe_2) < 0)
		ksft_exit_fail_msg("pipe() failed\n");