diff options
Diffstat (limited to 'config.tests/unix/inotify')
-rw-r--r-- | config.tests/unix/inotify/inotify.pro | 3 | ||||
-rw-r--r-- | config.tests/unix/inotify/inotifytest.cpp | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/config.tests/unix/inotify/inotify.pro b/config.tests/unix/inotify/inotify.pro new file mode 100644 index 0000000..e2e1560 --- /dev/null +++ b/config.tests/unix/inotify/inotify.pro @@ -0,0 +1,3 @@ +SOURCES = inotifytest.cpp +CONFIG -= qt dylib +mac:CONFIG -= app_bundle diff --git a/config.tests/unix/inotify/inotifytest.cpp b/config.tests/unix/inotify/inotifytest.cpp new file mode 100644 index 0000000..8378a7e --- /dev/null +++ b/config.tests/unix/inotify/inotifytest.cpp @@ -0,0 +1,9 @@ +#include <sys/inotify.h> + +int main() +{ + inotify_init(); + inotify_add_watch(0, "foobar", IN_ACCESS); + inotify_rm_watch(0, 1); + return 0; +} |