Commit 625f6fee authored by Martyn Russell's avatar Martyn Russell

libtracker-extract: Fixed unit tests which now require a graph parameter

parent b7de36a5
......@@ -709,6 +709,8 @@ tracker_xmp_free (TrackerXmpData *data)
*
* This function applies all data in @data to @metadata.
*
* The @graph parameter was added in 0.12.
*
* Returns: %TRUE if the @data was applied to @metadata successfully,
* otherwise %FALSE is returned.
*
......
......@@ -276,6 +276,7 @@ test_xmp_apply (void)
TrackerSparqlBuilder *metadata, *preupdate;
GString *where;
TrackerXmpData *data;
const gchar *graph = NULL;
metadata = tracker_sparql_builder_new_update ();
preupdate = tracker_sparql_builder_new_update ();
......@@ -287,7 +288,7 @@ test_xmp_apply (void)
tracker_sparql_builder_insert_open (metadata, NULL);
tracker_sparql_builder_subject_iri (metadata, "urn:uuid:test");
g_assert (tracker_xmp_apply (preupdate, metadata, where, "urn:uuid:test", data));
g_assert (tracker_xmp_apply (preupdate, metadata, graph, where, "urn:uuid:test", data));
tracker_sparql_builder_insert_close (metadata);
......@@ -309,6 +310,7 @@ test_xmp_apply_location (void)
TrackerXmpData data = { 0, };
TrackerSparqlBuilder *metadata, *preupdate;
GString *where;
const gchar *graph = NULL;
data.address = g_strdup ("Itamerenkatu 11-13");
data.city = g_strdup ("Helsinki");
......@@ -322,7 +324,7 @@ test_xmp_apply_location (void)
tracker_sparql_builder_insert_open (metadata, NULL);
tracker_sparql_builder_subject_iri (metadata, "urn:uuid:test");
g_assert (tracker_xmp_apply (preupdate, metadata, where, "urn:uuid:test", &data));
g_assert (tracker_xmp_apply (preupdate, metadata, graph, where, "urn:uuid:test", &data));
tracker_sparql_builder_insert_close (metadata);
......
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