syscalls/fanotify07.c: Fix compilation without fanotify
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.
Signed-off-by Xiao Yang <[email protected]>
--- testcases/kernel/syscalls/fanotify/fanotify07.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
testcases/kernel/syscalls/fanotify/fanotify07.c +1 -6
@@ -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
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_TCONFinstead of main function to skip this case in new API.
Good catch, pushed, thanks.
Signature · 2 lines
Cyril Hrubis [email protected]