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: Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
parent
63aa57f52c
commit
51ad5b54b6
@ -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);
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user