[tracker] tests: Adapt tracker-backup-test to non-GPrivate interfaces
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tests: Adapt tracker-backup-test to non-GPrivate interfaces
- Date: Mon, 10 Jul 2017 00:14:20 +0000 (UTC)
commit 3cc3de6932b38079f0a030c7016eb9354b64c943
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Jul 10 01:40:29 2017 +0200
tests: Adapt tracker-backup-test to non-GPrivate interfaces
This code relies on being able to query again the contents immediately
after restore, this may or may not be true depending on the
TrackerDBInterface used on the posterior query (eg. not being the one
that performed the update).
Since testing access from multiple DBInterfaces is not in the scope
of this test, just add an extra TrackerDataManager initialization in
between to ensure the interface used on the query is up to date.
tests/libtracker-data/tracker-backup-test.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/libtracker-data/tracker-backup-test.c b/tests/libtracker-data/tracker-backup-test.c
index 8cf0d46..cd07441 100644
--- a/tests/libtracker-data/tracker-backup-test.c
+++ b/tests/libtracker-data/tracker-backup-test.c
@@ -203,6 +203,12 @@ test_backup_and_restore_helper (const gchar *db_location,
tracker_data_backup_restore (manager, backup_file, data_location, data_location, test_schemas, NULL,
NULL, &error);
g_assert_no_error (error);
+ g_object_unref (manager);
+
+ manager = tracker_data_manager_new (0, data_location, data_location, test_schemas,
+ FALSE, FALSE, 100, 100);
+ g_initable_init (G_INITABLE (manager), NULL, &error);
+ g_assert_no_error (error);
check_content_in_db (manager, 3, 1);
g_object_unref (test_schemas);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]