[tracker/property-changes-for-review] tests/libtracker-data: Disable certain ontology changes in unit test for now
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/property-changes-for-review] tests/libtracker-data: Disable certain ontology changes in unit test for now
- Date: Wed, 7 Apr 2010 15:46:13 +0000 (UTC)
commit 181e5073a03aabe09e03369f9d18f2395ebfd9b6
Author: Philip Van Hoof <philip codeminded be>
Date: Wed Apr 7 17:44:13 2010 +0200
tests/libtracker-data: Disable certain ontology changes in unit test for now
The post_check function can't cope with this yet. We should probably add a
few separate proper unit-tests for property-changes anyway.
src/libtracker-data/tracker-data-manager.c | 4 ++--
.../change/source/99-example.ontology.v2 | 4 ++--
.../change/source/99-example.ontology.v3 | 4 ++--
.../change/source/99-example.ontology.v4 | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index 8a6da06..521226b 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -199,8 +199,6 @@ update_property_value (const gchar *kind,
result_set = tracker_data_query_sparql (query, &error);
- g_free (query);
-
if (!error && result_set) {
gchar *str = NULL;
@@ -242,6 +240,8 @@ update_property_value (const gchar *kind,
g_clear_error (&error);
}
+ g_free (query);
+
return needed;
}
diff --git a/tests/libtracker-data/change/source/99-example.ontology.v2 b/tests/libtracker-data/change/source/99-example.ontology.v2
index 10bdbb2..59824a5 100644
--- a/tests/libtracker-data/change/source/99-example.ontology.v2
+++ b/tests/libtracker-data/change/source/99-example.ontology.v2
@@ -17,6 +17,6 @@ example:B a rdfs:Class ;
example:b a rdf:Property ;
rdfs:domain example:A ;
- rdfs:range example:B ;
- tracker:indexed true .
+ rdfs:range example:B .
+# tracker:indexed true .
diff --git a/tests/libtracker-data/change/source/99-example.ontology.v3 b/tests/libtracker-data/change/source/99-example.ontology.v3
index 5048df1..e57a40d 100644
--- a/tests/libtracker-data/change/source/99-example.ontology.v3
+++ b/tests/libtracker-data/change/source/99-example.ontology.v3
@@ -31,5 +31,5 @@ example:i2 a rdf:Property ;
example:single1 a rdf:Property ;
rdfs:domain example:A ;
rdfs:range xsd:integer ;
- nrl:maxCardinality 1 ;
- tracker:indexed true .
+ nrl:maxCardinality 1 .
+# tracker:indexed true .
diff --git a/tests/libtracker-data/change/source/99-example.ontology.v4 b/tests/libtracker-data/change/source/99-example.ontology.v4
index 08b0a28..8977a86 100644
--- a/tests/libtracker-data/change/source/99-example.ontology.v4
+++ b/tests/libtracker-data/change/source/99-example.ontology.v4
@@ -31,8 +31,8 @@ example:i2 a rdf:Property ;
example:single1 a rdf:Property ;
rdfs:domain example:A ;
rdfs:range xsd:integer ;
- nrl:maxCardinality 1 ;
- tracker:indexed false .
+ nrl:maxCardinality 1 .
+# tracker:indexed false .
example:ib a rdf:Property ;
rdfs:domain example:B ;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]