summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAyush Jain <Ayush.jain3@amd.com>2025-04-09 04:46:32 +0000
committerShuah Khan <skhan@linuxfoundation.org>2025-05-09 12:43:10 -0600
commitab4b00407dd864853516aba3cd7caed2b7c33ffd (patch)
tree9a94e79a0b324e5dd0efcf10481a19868c02eee9
parent9d4b78df5dc58ba4506e12f1cc92d3bebf0caffa (diff)
selftests/ftrace: Convert poll to a gen_file
Poll program is a helper to ftracetest, thus make it a generic file and remove it from being run as a test. Currently when executing tests using $ make run_tests CC poll TAP version 13 1..2 # timeout set to 0 # selftests: ftrace: poll # Error: Polling file is not specified not ok 1 selftests: ftrace: poll # exit=255 Fix this by using TEST_GEN_FILES to build the 'poll' binary as a helper rather than as a test. Fixes: 80c3e28528ff ("selftests/tracing: Add hist poll() support test") Link: https://lore.kernel.org/r/20250409044632.363285-1-Ayush.jain3@amd.com Signed-off-by: Ayush Jain <Ayush.jain3@amd.com> Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
-rw-r--r--tools/testing/selftests/ftrace/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/ftrace/Makefile b/tools/testing/selftests/ftrace/Makefile
index 49d96bb16355..7c12263f8260 100644
--- a/tools/testing/selftests/ftrace/Makefile
+++ b/tools/testing/selftests/ftrace/Makefile
@@ -6,6 +6,6 @@ TEST_PROGS := ftracetest-ktap
TEST_FILES := test.d settings
EXTRA_CLEAN := $(OUTPUT)/logs/*
-TEST_GEN_PROGS = poll
+TEST_GEN_FILES := poll
include ../lib.mk