Skip to contentSkip to conversation

inotify06: kernel version fix

PATCH New Cedric Hnyda 2 participants 2 messages Oct 9, 2015 – Oct 12, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 inotify06: kernel version fix

inotify06 is a regression test for kernels >= 4.2.
Add a condition so that only >= 4.2 kernels can run the test because previous kernel are likely to crash because of the test.

---
 testcases/kernel/syscalls/inotify/inotify06.c | 5 +++++
 1 file changed, 5 insertions(+)
testcases/kernel/syscalls/inotify/inotify06.c +5 -0
index 71f7596..090729d 100644
@@ -69,6 +69,11 @@ static void setup(void)
 {
 	int i;
 
+	if ((tst_kvercmp(4, 2, 0)) < 0) {
+		tst_brkm(TCONF, NULL,
+			"This test can only run on kernels that are 4.2. and higher");
+	}
+
 	tst_sig(FORK, DEF_HANDLER, cleanup);
 
 	TEST_PAUSE;
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 inotify06: kernel version fix

Hi!

Quoted 3 lines

inotify06 is a regression test for kernels >= 4.2.
Add a condition so that only >= 4.2 kernels can run the test because previous kernel are likely to crash because of the test.

No, it's a regression test for a bug that was fixed in 4.2 and backported to stable kernel branches. It's okay that it brings down unpatched kernels, since they are buggy and should be updated.

Signature · 2 lines
Cyril Hrubis
[email protected]