[LTP] [PATCH] syscalls/fanotify07.c: Fix compilation without fanotify
Xiao Yang
yangx.jy@cn.fujitsu.com
Wed May 24 11:29:55 CEST 2017
Compilation failed becasue main function is defined in new API.
We should use TST_TEST_TCONF instead of main function to skip
this case in new API.
Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
---
testcases/kernel/syscalls/fanotify/fanotify07.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/testcases/kernel/syscalls/fanotify/fanotify07.c b/testcases/kernel/syscalls/fanotify/fanotify07.c
index 5cb5bbb..79ff455 100644
--- a/testcases/kernel/syscalls/fanotify/fanotify07.c
+++ b/testcases/kernel/syscalls/fanotify/fanotify07.c
@@ -240,10 +240,5 @@ static struct tst_test test = {
};
#else
-
-int main(void)
-{
- tst_brk(TCONF, "system doesn't have required fanotify support");
-}
-
+ TST_TEST_TCONF("system doesn't have required fanotify support");
#endif
--
1.8.3.1
More information about the ltp
mailing list