Skip to contentSkip to conversation

syscalls/fanotify07.c: Fix compilation without fanotify

PATCH New Xiao Yang 2 participants 2 messages May 24, 2017

lore
Share & tools
lore

Xiao Yang

author
#0 lore raw

PATCH 1/1 syscalls/fanotify07.c: Fix compilation without fanotify

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.

---
 testcases/kernel/syscalls/fanotify/fanotify07.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
testcases/kernel/syscalls/fanotify/fanotify07.c +1 -6
index 5cb5bbb..79ff455 100644
@@ -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
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 syscalls/fanotify07.c: Fix compilation without fanotify

Hi!

Quoted 3 lines

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.

Good catch, pushed, thanks.

Signature · 2 lines
Cyril Hrubis
[email protected]