Selftest output reporting was happening before the TAP headers and plan
had been emitted. Move the first test reports later.
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
 
        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);
 
 int main(int argc, char **argv)
 {
        ksft_print_header();
-       test_clone3_supported();
-
        ksft_set_plan(1);
+       test_clone3_supported();
 
        test_clone3_clear_sighand();
 
 
        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");