summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2017-06-06 12:18:57 +0200
committerCarlos Garnacho <carlosg@gnome.org>2017-06-29 19:53:27 +0200
commitd0a5a611aa508d2a5e8bda0d538048d762f83a86 (patch)
treeff5b5a56b737252fe8aff99875fdbd5e8752bcb0 /tests
parent1590bd817d9de500e6c85ad6b80bbeb6d69b1788 (diff)
downloadtracker-d0a5a611aa508d2a5e8bda0d538048d762f83a86.tar.gz
libtracker-data: Move journal deletion code to tracker-db-journal.c
And call it directly from the "tracker reset" subcommand, which seems about the only place where this is needed. In the future, we should just consider cache/journal directory ours, delete those altogether, and avoid these horrible layering breaks.
Diffstat (limited to 'tests')
-rw-r--r--tests/libtracker-data/tracker-db-journal.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/libtracker-data/tracker-db-journal.c b/tests/libtracker-data/tracker-db-journal.c
index 3034e6260..22b4b0bb6 100644
--- a/tests/libtracker-data/tracker-db-journal.c
+++ b/tests/libtracker-data/tracker-db-journal.c
@@ -69,7 +69,6 @@ static void
test_write_functions (void)
{
gchar *path;
- const gchar *filename;
gsize initial_size, actual_size;
gboolean result;
GError *error = NULL;
@@ -89,10 +88,6 @@ test_write_functions (void)
g_object_unref (data_location);
g_assert_no_error (error);
- filename = tracker_db_journal_get_filename ();
- g_assert (filename != NULL);
- g_assert_cmpstr (filename, ==, path);
-
/* Size is 8 due to header */
actual_size = tracker_db_journal_get_size ();
g_assert_cmpint (actual_size, ==, 8);