If the kernel version is less than 2.6.25, but this kernel back ported the kernel commit ece95912 to send IN_ATTRIB events when link count changes, this test may fail because we assume that there is no event IN_ATTRIB is sent.
Signed-off-by: Wanlong Gao <[email protected]> --- testcases/kernel/syscalls/inotify/inotify04.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/testcases/kernel/syscalls/inotify/inotify04.c b/testcases/kernel/syscalls/inotify/inotify04.c index df91acb..b3ff5cb 100644 --- a/testcases/kernel/syscalls/inotify/inotify04.c +++ b/testcases/kernel/syscalls/inotify/inotify04.c @@ -214,8 +214,11 @@ int main(int argc, char **argv) "if the older had not yet been read) " "instead checked if the most recent event " "could be coalesced with the oldest " - "unread event. This has been fixed by commit" - "1c17d18e3775485bf1e0ce79575eb637a94494a2."); + "unread event. This has been fixed by commit " + "1c17d18e3775485bf1e0ce79575eb637a94494a2." + "If not, this may because your kernel back ported " + "the kernel commit ece9591 to send IN_ATTRIB events " + "when link count changes."); tst_resm(TFAIL, "got unnecessary event: " "wd=%d mask=%x cookie=%u len=%u " -- 1.8.3.2.634.g7a3187e ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
