[tracker/wip/carlosg/split-dataobject-informationelement: 5/9] tests: Add test for property path queries on non-existent graphs
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/split-dataobject-informationelement: 5/9] tests: Add test for property path queries on non-existent graphs
- Date: Thu, 23 Apr 2020 21:44:57 +0000 (UTC)
commit 4409408f580760b42737885de1569b22c9e748c8
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Apr 23 12:26:35 2020 +0200
tests: Add test for property path queries on non-existent graphs
This was broken till the previous commit.
tests/libtracker-data/graph/non-existent-2.out | 0
tests/libtracker-data/graph/non-existent-2.rq | 5 +++++
tests/libtracker-data/tracker-sparql-test.c | 1 +
3 files changed, 6 insertions(+)
---
diff --git a/tests/libtracker-data/graph/non-existent-2.out b/tests/libtracker-data/graph/non-existent-2.out
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/libtracker-data/graph/non-existent-2.rq b/tests/libtracker-data/graph/non-existent-2.rq
new file mode 100644
index 000000000..a61bb46bb
--- /dev/null
+++ b/tests/libtracker-data/graph/non-existent-2.rq
@@ -0,0 +1,5 @@
+SELECT * {
+ GRAPH <non-existent> {
+ ?s rdf:type/rdfs:subClassOf ?p
+ }
+}
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index c044f9f0f..83467217a 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -137,6 +137,7 @@ const TestInfo tests[] = {
{ "graph/graph-5", "graph/data-4", FALSE },
{ "graph/graph-6", "graph/data-5", FALSE },
{ "graph/non-existent-1", "graph/data-1", FALSE },
+ { "graph/non-existent-2", "graph/data-1", FALSE },
{ "graph/drop", "graph/data-drop", FALSE },
{ "graph/drop-non-existent", "graph/data-drop-non-existent", FALSE, TRUE },
{ "graph/drop-default", "graph/data-drop-default", FALSE },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]