1
0
Fork 0

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>
zero-sugar-mainline-defconfig
Kees Cook 2020-06-22 11:16:44 -07:00 committed by Shuah Khan
parent 63aa57f52c
commit 51ad5b54b6
3 changed files with 3 additions and 4 deletions

View File

@ -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);

View File

@ -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();

View File

@ -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");