Hello,

this patch fixes incorrect compilation issue which caused the inotify tests not 
to be compiled when they should.

Regards
    Jiri Palecek

Signed-off-by: Jiri Palecek <[email protected]>
---
 testcases/kernel/syscalls/inotify/inotify01.c |    4 ++--
 testcases/kernel/syscalls/inotify/inotify02.c |    4 ++--
 testcases/kernel/syscalls/inotify/inotify03.c |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/testcases/kernel/syscalls/inotify/inotify01.c 
b/testcases/kernel/syscalls/inotify/inotify01.c
index 0986571..0dd0308 100644
--- a/testcases/kernel/syscalls/inotify/inotify01.c
+++ b/testcases/kernel/syscalls/inotify/inotify01.c
@@ -50,7 +50,7 @@
 #include "test.h"
 #include "usctest.h"
 
-#if defined(HAVE_SYS_INOTIFY) && defined(__NR_inotify_init)
+#if defined(HAVE_SYS_INOTIFY_H) && defined(__NR_inotify_init)
 #include <sys/inotify.h>
 
 #define EVENT_MAX 1024
@@ -333,7 +333,7 @@ main()
     tst_resm(TCONF, "Inotify syscall can be found at kernel 2.6.13 or 
higher.");
     return 0;
 #endif
-#ifndef HAVE_SYS_INOTIFY
+#ifndef HAVE_SYS_INOTIFY_H
     tst_resm(TBROK, "can't find header sys/inotify.h");
     return 1;
 #endif
diff --git a/testcases/kernel/syscalls/inotify/inotify02.c 
b/testcases/kernel/syscalls/inotify/inotify02.c
index 88cfbae..e565764 100644
--- a/testcases/kernel/syscalls/inotify/inotify02.c
+++ b/testcases/kernel/syscalls/inotify/inotify02.c
@@ -54,7 +54,7 @@
 #include "test.h"
 #include "usctest.h"
 
-#if defined(__NR_inotify_init) && defined(HAVE_SYS_INOTIFY)
+#if defined(__NR_inotify_init) && defined(HAVE_SYS_INOTIFY_H)
 #include <sys/inotify.h>
 
 #ifndef IN_MOVE_SELF
@@ -375,7 +375,7 @@ main()
     tst_resm(TCONF, "Inotify syscall can be found at kernel 2.6.13 or 
higher.");
     return 0;
 #endif
-#ifndef HAVE_SYS_INOTIFY
+#ifndef HAVE_SYS_INOTIFY_H
     tst_resm(TBROK, "can't find header sys/inotify.h");
     return 1;
 #endif
diff --git a/testcases/kernel/syscalls/inotify/inotify03.c 
b/testcases/kernel/syscalls/inotify/inotify03.c
index 968f5ba..0bea557 100644
--- a/testcases/kernel/syscalls/inotify/inotify03.c
+++ b/testcases/kernel/syscalls/inotify/inotify03.c
@@ -49,7 +49,7 @@
 #include "test.h"
 #include "usctest.h"
 
-#if defined(HAVE_SYS_INOTIFY) && defined(__NR_inotify_init)
+#if defined(HAVE_SYS_INOTIFY_H) && defined(__NR_inotify_init)
 #include <sys/inotify.h>
 
 #define EVENT_MAX 1024
@@ -369,7 +369,7 @@ main()
        tst_resm(TCONF, "Inotify syscall can be found at kernel 2.6.13 or 
higher.");
        return 0;
 #endif
-#ifndef HAVE_SYS_INOTIFY
+#ifndef HAVE_SYS_INOTIFY_H
        tst_resm(TBROK, "can't find header sys/inotify.h");
        return 1;
 #endif
-- 
1.6.2.rc1




------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to