From: Dmitry V. Levin Date: Tue, 5 Jan 2016 23:06:14 +0000 (+0000) Subject: tests/fanotify_mark.c: use libtests X-Git-Tag: v4.12~734 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18eeb96799564c38c9339fe80b566242ceb4bff2;p=strace tests/fanotify_mark.c: use libtests * tests/fanotify_mark.c: Use SKIP_MAIN_UNDEFINED. --- diff --git a/tests/fanotify_mark.c b/tests/fanotify_mark.c index 08b4ffef..e467bf00 100644 --- a/tests/fanotify_mark.c +++ b/tests/fanotify_mark.c @@ -1,16 +1,18 @@ #include "tests.h" + #if defined HAVE_SYS_FANOTIFY_H && defined HAVE_FANOTIFY_MARK + # include + int main(void) { fanotify_mark(-1, FAN_MARK_ADD, FAN_MODIFY | FAN_ONDIR, -100, "."); return 0; } + #else -int -main(void) -{ - return 77; -} + +SKIP_MAIN_UNDEFINED("HAVE_SYS_FANOTIFY_H && HAVE_FANOTIFY_MARK") + #endif