[tracker] tests/libtracker-data: Added unit test for a regression that we had
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tests/libtracker-data: Added unit test for a regression that we had
- Date: Fri, 18 Jun 2010 10:34:26 +0000 (UTC)
commit e5ed01261aa01152afc292f66cd2f4c718536b97
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Jun 18 12:32:47 2010 +0200
tests/libtracker-data: Added unit test for a regression that we had
tests/libtracker-data/sort/Makefile.am | 4 +++-
tests/libtracker-data/sort/query-sort-6.out | 5 +++++
tests/libtracker-data/sort/query-sort-6.rq | 6 ++++++
tests/libtracker-data/tracker-sparql-test.c | 1 +
4 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/tests/libtracker-data/sort/Makefile.am b/tests/libtracker-data/sort/Makefile.am
index 11afc93..e4cfc77 100644
--- a/tests/libtracker-data/sort/Makefile.am
+++ b/tests/libtracker-data/sort/Makefile.am
@@ -16,4 +16,6 @@ EXTRA_DIST = \
query-sort-4.out \
query-sort-4.rq \
query-sort-5.out \
- query-sort-5.rq
+ query-sort-5.rq \
+ query-sort-6.rq \
+ query-sort-6.out
diff --git a/tests/libtracker-data/sort/query-sort-6.out b/tests/libtracker-data/sort/query-sort-6.out
new file mode 100644
index 0000000..e52c663
--- /dev/null
+++ b/tests/libtracker-data/sort/query-sort-6.out
@@ -0,0 +1,5 @@
+"1"
+"1"
+"1"
+"1"
+"1"
diff --git a/tests/libtracker-data/sort/query-sort-6.rq b/tests/libtracker-data/sort/query-sort-6.rq
new file mode 100755
index 0000000..e1eb1af
--- /dev/null
+++ b/tests/libtracker-data/sort/query-sort-6.rq
@@ -0,0 +1,6 @@
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+PREFIX ex: <http://example.org/things#>
+
+SELECT 1 AS ?filter
+WHERE { ?x a foaf:Person }
+ORDER BY ?filter
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index bb5ddc4..e4619a3 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -99,6 +99,7 @@ const TestInfo tests[] = {
{ "sort/query-sort-3", "sort/data-sort-3", FALSE },
{ "sort/query-sort-4", "sort/data-sort-4", FALSE },
{ "sort/query-sort-5", "sort/data-sort-4", FALSE },
+ { "sort/query-sort-6", "sort/data-sort-4", FALSE },
{ "subqueries/subqueries-1", "subqueries/data-1", FALSE },
{ "subqueries/subqueries-union-1", "subqueries/data-1", FALSE },
{ "subqueries/subqueries-union-2", "subqueries/data-1", FALSE },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]