Skip to content

Commit 84b8d6c

Browse files
t-8chshuahkh
authored andcommitted
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/[email protected] Signed-off-by: Thomas Weißschuh <[email protected]> Reviewed-by: Muhammad Usama Anjum <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 11f6dcf commit 84b8d6c

File tree

9 files changed

+18
-0
lines changed

9 files changed

+18
-0
lines changed

tools/testing/selftests/timens/clock_nanosleep.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ int main(int argc, char *argv[])
115115
{
116116
int ret, nsfd;
117117

118+
ksft_print_header();
119+
118120
nscheck();
119121

120122
ksft_set_plan(4);

tools/testing/selftests/timens/exec.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ int main(int argc, char *argv[])
3636
return 0;
3737
}
3838

39+
ksft_print_header();
40+
3941
nscheck();
4042

4143
ksft_set_plan(1);

tools/testing/selftests/timens/futex.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ int main(int argc, char *argv[])
6666
pid_t pid;
6767
struct timespec mtime_now;
6868

69+
ksft_print_header();
70+
6971
nscheck();
7072

7173
ksft_set_plan(2);

tools/testing/selftests/timens/gettime_perf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ int main(int argc, char *argv[])
6767
time_t offset = 10;
6868
int nsfd;
6969

70+
ksft_print_header();
71+
7072
ksft_set_plan(8);
7173

7274
fill_function_pointers();

tools/testing/selftests/timens/procfs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ int main(int argc, char *argv[])
180180
{
181181
int ret = 0;
182182

183+
ksft_print_header();
184+
183185
nscheck();
184186

185187
ksft_set_plan(2);

tools/testing/selftests/timens/timens.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ int main(int argc, char *argv[])
151151
time_t offset;
152152
int ret = 0;
153153

154+
ksft_print_header();
155+
154156
nscheck();
155157

156158
check_supported_timers();

tools/testing/selftests/timens/timer.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ int main(int argc, char *argv[])
7575
pid_t pid;
7676
struct timespec btime_now, mtime_now;
7777

78+
ksft_print_header();
79+
7880
nscheck();
7981

8082
check_supported_timers();

tools/testing/selftests/timens/timerfd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ int main(int argc, char *argv[])
8282
pid_t pid;
8383
struct timespec btime_now, mtime_now;
8484

85+
ksft_print_header();
86+
8587
nscheck();
8688

8789
check_supported_timers();

tools/testing/selftests/timens/vfork_exec.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ int main(int argc, char *argv[])
9191
return check("child after exec", &now);
9292
}
9393

94+
ksft_print_header();
95+
9496
nscheck();
9597

9698
ksft_set_plan(4);

0 commit comments

Comments
 (0)