Skip to contentSkip to conversation

fanotify09: Skip testing e730558adffb on SLE < 5.19 kernel

PATCH New Petr Vorel 1 participant 1 message Sep 6, 2024

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/1 fanotify09: Skip testing e730558adffb on SLE < 5.19 kernel

Kernel commit e730558adffb ("fsnotify: consistent behavior for parent not watching children") will not be backported to SLE15-SP[45] v5.14 based kernel, therefore skip it for kernel < 5.19 (the original mainline kernel which brought the functionality.

---
 testcases/kernel/syscalls/fanotify/fanotify09.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
testcases/kernel/syscalls/fanotify/fanotify09.c +6 -1
index 48b198b941..72e9239897 100644
@@ -379,7 +379,12 @@ static void test_fanotify(unsigned int n)
 		return;
 	}
 
-	if (tc->ignore && tst_kvercmp(5, 10, 0) < 0) {
+	static struct tst_kern_exv kvers[] = {
+		{"SLES", "5.19"},
+		{NULL, NULL}
+	};
+
+	if (tc->ignore && tst_kvercmp2(5, 10, 0, kvers) < 0) {
 		tst_res(TCONF, "ignored mask on parent dir has undefined "
 				"behavior on kernel < 5.10");
 		return;
Signature · 5 lines
2.45.2


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