aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/run_inotify.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/run_inotify.cxx b/test/run_inotify.cxx
index 92790a3a..29fcf70a 100644
--- a/test/run_inotify.cxx
+++ b/test/run_inotify.cxx
@@ -61,7 +61,10 @@ int main(int argc, char **argv)
path = argv[1];
- InotifySource *source = InotifySource::Create(my_inotify_callback,
+ event_loop = new EventLoop(EventLoop::Default());
+
+ InotifySource *source = InotifySource::Create(*event_loop,
+ my_inotify_callback,
nullptr, &error);
if (source == NULL) {
g_warning("%s", error->message);
@@ -77,8 +80,6 @@ int main(int argc, char **argv)
return 2;
}
- event_loop = new EventLoop(EventLoop::Default());
-
struct sigaction sa;
sa.sa_flags = 0;
sigemptyset(&sa.sa_mask);