public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] fanotify25: fix test failure on kernel with CONFIG_MODULES=n
@ 2026-03-02 14:44 Amir Goldstein
  2026-03-02 15:39 ` Cyril Hrubis
  2026-03-02 16:44 ` Jan Kara
  0 siblings, 2 replies; 11+ messages in thread
From: Amir Goldstein @ 2026-03-02 14:44 UTC (permalink / raw)
  To: Petr Vorel; +Cc: ltp, Jan Kara

On a kernel built without modules loading support the test fails:
fanotify25.c:61: TBROK: write(4,0x55a523b99160,31) failed: EINVAL (22)

Use another symbol which is less likely to be missing.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
---
 testcases/kernel/syscalls/fanotify/fanotify25.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/testcases/kernel/syscalls/fanotify/fanotify25.c b/testcases/kernel/syscalls/fanotify/fanotify25.c
index c982f3225..9b03fd9ab 100644
--- a/testcases/kernel/syscalls/fanotify/fanotify25.c
+++ b/testcases/kernel/syscalls/fanotify/fanotify25.c
@@ -24,10 +24,10 @@ static const struct traceconfig {
 	const char *filename;
 	const char *wdata;
 } trace_cmds[] = {
-	{EVENTS_SYSFILE, "p:ltp_load_module_0 load_module"},
-	{MNTPOINT "/events/kprobes/ltp_load_module_0/enable", "1"},
-	{MNTPOINT "/events/kprobes/ltp_load_module_0/enable", "0"},
-	{EVENTS_SYSFILE, "-:ltp_load_module_0"},
+	{EVENTS_SYSFILE, "p:ltp_load_script_0 load_script"},
+	{MNTPOINT "/events/kprobes/ltp_load_script_0/enable", "1"},
+	{MNTPOINT "/events/kprobes/ltp_load_script_0/enable", "0"},
+	{EVENTS_SYSFILE, "-:ltp_load_script_0"},
 	{}
 };
 
-- 
2.53.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-03-03 11:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-02 14:44 [LTP] [PATCH] fanotify25: fix test failure on kernel with CONFIG_MODULES=n Amir Goldstein
2026-03-02 15:39 ` Cyril Hrubis
2026-03-02 17:07   ` Amir Goldstein
2026-03-03  8:52     ` Petr Vorel
2026-03-03  9:49     ` Martin Doucha
2026-03-03  9:54       ` Amir Goldstein
2026-03-03  9:59         ` Martin Doucha
2026-03-03 10:10           ` Amir Goldstein
2026-03-03 10:50             ` Martin Doucha
2026-03-03 11:31               ` Amir Goldstein
2026-03-02 16:44 ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox