hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/tools/testing/selftests/capabilities/test_execve.c
....@@ -430,8 +430,6 @@
430430 {
431431 char *tmp1, *tmp2, *our_path;
432432
433
- ksft_print_header();
434
-
435433 /* Find our path */
436434 tmp1 = strdup(argv[0]);
437435 if (!tmp1)
....@@ -445,6 +443,8 @@
445443 mpid = getpid();
446444
447445 if (fork_wait()) {
446
+ ksft_print_header();
447
+ ksft_set_plan(12);
448448 ksft_print_msg("[RUN]\t+++ Tests with uid == 0 +++\n");
449449 return do_tests(0, our_path);
450450 }
....@@ -452,6 +452,8 @@
452452 ksft_print_msg("==================================================\n");
453453
454454 if (fork_wait()) {
455
+ ksft_print_header();
456
+ ksft_set_plan(9);
455457 ksft_print_msg("[RUN]\t+++ Tests with uid != 0 +++\n");
456458 return do_tests(1, our_path);
457459 }