[tracker] Remove also journals in backup/restore test
- From: Ivan Frade <ifrade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] Remove also journals in backup/restore test
- Date: Mon, 15 Mar 2010 15:54:07 +0000 (UTC)
commit e2a757854a562042e290a83457d5911af20eba5e
Author: Ivan Frade <ivan frade nokia com>
Date: Mon Mar 15 17:51:22 2010 +0200
Remove also journals in backup/restore test
tests/libtracker-data/tracker-backup-test.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/tests/libtracker-data/tracker-backup-test.c b/tests/libtracker-data/tracker-backup-test.c
index 57db6f0..4425f9f 100644
--- a/tests/libtracker-data/tracker-backup-test.c
+++ b/tests/libtracker-data/tracker-backup-test.c
@@ -74,7 +74,7 @@ check_content_in_db (gint expected_instances, gint expected_relations)
* Load ontology a few instances
* Run a couple of queries to check it is ok
* Back-up.
- * Nuke the DB.
+ * Remove the DB.
* Restore
* Run again the queries
*/
@@ -127,6 +127,14 @@ test_backup_and_restore (void)
g_unlink (meta_db);
g_free (meta_db);
+ meta_db = g_build_path (G_DIR_SEPARATOR_S, db_location, "data", "tracker-store.journal", NULL);
+ g_unlink (meta_db);
+ g_free (meta_db);
+
+ meta_db = g_build_path (G_DIR_SEPARATOR_S, db_location, "data", ".meta.isrunning", NULL);
+ g_unlink (meta_db);
+ g_free (meta_db);
+
tracker_data_manager_init (TRACKER_DB_MANAGER_FORCE_REINDEX,
data_prefix,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]