diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2015-09-22 13:34:13 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2015-09-22 13:48:08 +0200 |
commit | c3a164497e42caf01a614f737a79056c261d68c8 (patch) | |
tree | e070796c14b7ee44125de489eeb8b4df6053dc2b /tests | |
parent | 72f1a5b9e1c0524df28bcbdcb07ae4ccb59928b7 (diff) | |
download | tracker-c3a164497e42caf01a614f737a79056c261d68c8.tar.gz |
tests: Don't use the same test path twice
Recent glib forbids duplicate test paths, as the test relies on that
in order to find the .rq/.out files, copy these files from graph-4*.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libtracker-data/graph/Makefile.am | 4 | ||||
-rw-r--r-- | tests/libtracker-data/graph/graph-5.out | 3 | ||||
-rw-r--r-- | tests/libtracker-data/graph/graph-5.rq | 5 | ||||
-rw-r--r-- | tests/libtracker-data/tracker-sparql-test.c | 2 |
4 files changed, 12 insertions, 2 deletions
diff --git a/tests/libtracker-data/graph/Makefile.am b/tests/libtracker-data/graph/Makefile.am index 019de4ec7..b6a66503b 100644 --- a/tests/libtracker-data/graph/Makefile.am +++ b/tests/libtracker-data/graph/Makefile.am @@ -16,4 +16,6 @@ EXTRA_DIST += \ graph-3.out \ graph-3.rq \ graph-4.out \ - graph-4.rq + graph-4.rq \ + graph-5.out \ + graph-5.rq diff --git a/tests/libtracker-data/graph/graph-5.out b/tests/libtracker-data/graph/graph-5.out new file mode 100644 index 000000000..27656c680 --- /dev/null +++ b/tests/libtracker-data/graph/graph-5.out @@ -0,0 +1,3 @@ +"http://example/graphA" "http://example/p" "42" +"http://example/graphA" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "http://example/A" +"http://example/graphA" "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" "http://www.w3.org/2000/01/rdf-schema#Resource" diff --git a/tests/libtracker-data/graph/graph-5.rq b/tests/libtracker-data/graph/graph-5.rq new file mode 100644 index 000000000..6e7248834 --- /dev/null +++ b/tests/libtracker-data/graph/graph-5.rq @@ -0,0 +1,5 @@ +SELECT ?g ?p ?v WHERE { + GRAPH ?g { + example:resource ?p ?v + } +} ORDER BY ?g ?p ?v diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c index 8d045ce03..9c7035cc5 100644 --- a/tests/libtracker-data/tracker-sparql-test.c +++ b/tests/libtracker-data/tracker-sparql-test.c @@ -105,7 +105,7 @@ const TestInfo tests[] = { { "graph/graph-2", "graph/data-2", FALSE }, { "graph/graph-3", "graph/data-3", FALSE }, { "graph/graph-4", "graph/data-3", FALSE }, - { "graph/graph-4", "graph/data-4", FALSE }, + { "graph/graph-5", "graph/data-4", FALSE }, { "optional/q-opt-complex-1", "optional/complex-data-1", FALSE }, { "optional/simple-optional-triple", "optional/simple-optional-triple", FALSE }, { "regex/regex-query-001", "regex/regex-data-01", FALSE }, |