mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ezra George <georgeezra017@gmail.com>
To: Christian Brauner <brauner@kernel.org>, Shuah Khan <shuah@kernel.org>
Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org,
	Ezra George <georgeezra017@gmail.com>
Subject: [PATCH] selftests: pidfd: declare pidfd_poll_test TAP plan
Date: Mon, 23 Nov 2026 16:01:27 +0100	[thread overview]
Message-ID: <20261123150127.635412-1-georgeezra017@gmail.com> (raw)

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


                 reply	other threads:[~2026-11-23 15:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261123150127.635412-1-georgeezra017@gmail.com \
    --to=georgeezra017@gmail.com \
    --cc=brauner@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=shuah@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®