tests: file-monitor: also remove the 'foo' file at the end of the test

This commit is contained in:
George Kiagiadakis 2021-08-19 10:44:31 +03:00
parent daa4da5ffc
commit e6f2dc17ff

View file

@ -79,7 +79,7 @@ test_file_monitor_basic (TestFixture * f, gconstpointer user_data)
/* delete the 'foo' file if it exists in path */
g_autofree gchar *filename = g_build_filename (f->path, "foo", NULL);
remove (filename);
(void) remove (filename);
/* handle changed signal */
f->file = NULL;
@ -101,6 +101,9 @@ test_file_monitor_basic (TestFixture * f, gconstpointer user_data)
/* removed watch */
g_signal_emit_by_name (f->plugin, "remove-watch", f->path);
/* remove 'foo' */
(void) remove (filename);
}
gint