inotify06: kernel version fix
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.
Signed-off-by Cedric Hnyda <[email protected]>
--- testcases/kernel/syscalls/inotify/inotify06.c | 5 +++++ 1 file changed, 5 insertions(+)
testcases/kernel/syscalls/inotify/inotify06.c +5 -0
@@ -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
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]