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

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
...@@ -131,9 +131,9 @@ int main(int argc, char *argv[]) ...@@ -131,9 +131,9 @@ int main(int argc, char *argv[])
uid_t uid = getuid(); uid_t uid = getuid();
test_clone3_supported();
ksft_print_header(); ksft_print_header();
ksft_set_plan(17); ksft_set_plan(17);
test_clone3_supported();
/* Just a simple clone3() should return 0.*/ /* Just a simple clone3() should return 0.*/
test_clone3(0, 0, 0, CLONE3_ARGS_NO_TEST); test_clone3(0, 0, 0, CLONE3_ARGS_NO_TEST);
......
...@@ -119,9 +119,8 @@ static void test_clone3_clear_sighand(void) ...@@ -119,9 +119,8 @@ static void test_clone3_clear_sighand(void)
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
ksft_print_header(); ksft_print_header();
test_clone3_supported();
ksft_set_plan(1); ksft_set_plan(1);
test_clone3_supported();
test_clone3_clear_sighand(); test_clone3_clear_sighand();
......
...@@ -157,8 +157,8 @@ int main(int argc, char *argv[]) ...@@ -157,8 +157,8 @@ int main(int argc, char *argv[])
pid_t set_tid[MAX_PID_NS_LEVEL * 2]; pid_t set_tid[MAX_PID_NS_LEVEL * 2];
ksft_print_header(); ksft_print_header();
test_clone3_supported();
ksft_set_plan(29); ksft_set_plan(29);
test_clone3_supported();
if (pipe(pipe_1) < 0 || pipe(pipe_2) < 0) if (pipe(pipe_1) < 0 || pipe(pipe_2) < 0)
ksft_exit_fail_msg("pipe() failed\n"); ksft_exit_fail_msg("pipe() failed\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment