Commit 3cc3de69 authored by Carlos Garnacho's avatar Carlos Garnacho

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.
parent a367dd08
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment