Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests/timens: Print TAP headers

The TAP specification requires that the output begins with a header line.
These headers lines are missing in the timens tests.

Print such a line.

Link: https://lore.kernel.org/r/20250502-selftests-timens-fixes-v1-1-fb517c76f04d@linutronix.de
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Thomas Weißschuh and committed by
Shuah Khan
84b8d6c9 11f6dcf7

+18
+2
tools/testing/selftests/timens/clock_nanosleep.c
··· 115 115 { 116 116 int ret, nsfd; 117 117 118 + ksft_print_header(); 119 + 118 120 nscheck(); 119 121 120 122 ksft_set_plan(4);
+2
tools/testing/selftests/timens/exec.c
··· 36 36 return 0; 37 37 } 38 38 39 + ksft_print_header(); 40 + 39 41 nscheck(); 40 42 41 43 ksft_set_plan(1);
+2
tools/testing/selftests/timens/futex.c
··· 66 66 pid_t pid; 67 67 struct timespec mtime_now; 68 68 69 + ksft_print_header(); 70 + 69 71 nscheck(); 70 72 71 73 ksft_set_plan(2);
+2
tools/testing/selftests/timens/gettime_perf.c
··· 67 67 time_t offset = 10; 68 68 int nsfd; 69 69 70 + ksft_print_header(); 71 + 70 72 ksft_set_plan(8); 71 73 72 74 fill_function_pointers();
+2
tools/testing/selftests/timens/procfs.c
··· 180 180 { 181 181 int ret = 0; 182 182 183 + ksft_print_header(); 184 + 183 185 nscheck(); 184 186 185 187 ksft_set_plan(2);
+2
tools/testing/selftests/timens/timens.c
··· 151 151 time_t offset; 152 152 int ret = 0; 153 153 154 + ksft_print_header(); 155 + 154 156 nscheck(); 155 157 156 158 check_supported_timers();
+2
tools/testing/selftests/timens/timer.c
··· 75 75 pid_t pid; 76 76 struct timespec btime_now, mtime_now; 77 77 78 + ksft_print_header(); 79 + 78 80 nscheck(); 79 81 80 82 check_supported_timers();
+2
tools/testing/selftests/timens/timerfd.c
··· 82 82 pid_t pid; 83 83 struct timespec btime_now, mtime_now; 84 84 85 + ksft_print_header(); 86 + 85 87 nscheck(); 86 88 87 89 check_supported_timers();
+2
tools/testing/selftests/timens/vfork_exec.c
··· 91 91 return check("child after exec", &now); 92 92 } 93 93 94 + ksft_print_header(); 95 + 94 96 nscheck(); 95 97 96 98 ksft_set_plan(4);