* [PATCH] selftests: pidfd: declare pidfd_poll_test TAP plan
@ 2026-11-23 15:01 Ezra George
0 siblings, 0 replies; only message in thread
From: Ezra George @ 2026-11-23 15:01 UTC (permalink / raw)
To: Christian Brauner, Shuah Khan; +Cc: linux-kselftest, linux-kernel, Ezra George
pidfd_poll_test.c uses the low-level kselftest.h helpers, but does not
call ksft_print_header() or ksft_set_plan(1) before reporting its result.
This produces incomplete TAP output and a plan mismatch:
# Planned tests != run tests (0 != 1)
Add the TAP header and declare the single expected result.
Tested: tools/testing/selftests/pidfd/pidfd_poll_test 1
Signed-off-by: Ezra George <georgeezra017@gmail.com>
---
tools/testing/selftests/pidfd/pidfd_poll_test.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/testing/selftests/pidfd/pidfd_poll_test.c b/tools/testing/selftests/pidfd/pidfd_poll_test.c
index 232304f818c7..416a136bb6eb 100644
--- a/tools/testing/selftests/pidfd/pidfd_poll_test.c
+++ b/tools/testing/selftests/pidfd/pidfd_poll_test.c
@@ -31,6 +31,9 @@ int main(int argc, char **argv)
fds.events = POLLIN;
+ ksft_print_header();
+ ksft_set_plan(1);
+
if (argc > 2)
ksft_exit_fail_msg("Unexpected command line argument\n");
--
2.43.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-23 15:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 15:01 [PATCH] selftests: pidfd: declare pidfd_poll_test TAP plan Ezra George
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®