summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-self-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'libappstream-glib/as-self-test.c')
-rw-r--r--libappstream-glib/as-self-test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libappstream-glib/as-self-test.c b/libappstream-glib/as-self-test.c
index ddfb106..06801e6 100644
--- a/libappstream-glib/as-self-test.c
+++ b/libappstream-glib/as-self-test.c
@@ -162,11 +162,13 @@ as_test_monitor_dir_func (void)
G_CALLBACK (monitor_test_cb), &cnt_changed);
/* add watch */
- g_mkdir_with_parents (tmpdir, 0700);
ret = as_monitor_add_directory (mon, tmpdir, NULL, &error);
g_assert_no_error (error);
g_assert (ret);
+ /* create directory */
+ g_mkdir_with_parents (tmpdir, 0700);
+
/* touch file */
cmd_touch = g_strdup_printf ("touch %s", tmpfile);
ret = g_spawn_command_line_sync (cmd_touch, NULL, NULL, NULL, &error);