[tracker/sam/debug-more: 1/9] tests: Remove obsolete method of setting ontology location
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/sam/debug-more: 1/9] tests: Remove obsolete method of setting ontology location
- Date: Sat, 25 Apr 2020 23:28:43 +0000 (UTC)
commit 9b586ab369d484f4f7944edef6653c6c674ab9bd
Author: Sam Thursfield <sam afuera me uk>
Date: Sun Apr 26 01:27:02 2020 +0200
tests: Remove obsolete method of setting ontology location
We can now set the ontology location without these hacks.
tests/functional-tests/ipc/meson.build | 1 -
tests/functional-tests/ipc/test-bus-query-cancellation.c | 2 --
tests/libtracker-sparql/tracker-fd-test.c | 2 --
tests/libtracker-sparql/tracker-sparql-test.c | 2 --
tests/meson.build | 1 -
5 files changed, 8 deletions(-)
---
diff --git a/tests/functional-tests/ipc/meson.build b/tests/functional-tests/ipc/meson.build
index bf7728eeb..fd8a58cbc 100644
--- a/tests/functional-tests/ipc/meson.build
+++ b/tests/functional-tests/ipc/meson.build
@@ -3,7 +3,6 @@ functional_ipc_test_c_args = [
]
test_env.set('LANG', 'en_GB.utf-8')
-test_env.set('TRACKER_DB_ONTOLOGIES_DIR', tracker_uninstalled_nepomuk_ontologies_dir)
test_env.set('TRACKER_LANGUAGE_STOP_WORDS_DIR', tracker_uninstalled_stop_words_dir)
bus_query_cancellation_test = executable('test-bus-query-cancellation',
diff --git a/tests/functional-tests/ipc/test-bus-query-cancellation.c
b/tests/functional-tests/ipc/test-bus-query-cancellation.c
index def7abdaf..1859e4f99 100644
--- a/tests/functional-tests/ipc/test-bus-query-cancellation.c
+++ b/tests/functional-tests/ipc/test-bus-query-cancellation.c
@@ -176,8 +176,6 @@ main (gint argc, gchar **argv)
setlocale (LC_ALL, "");
- g_setenv ("TRACKER_DB_ONTOLOGIES_DIR", TEST_ONTOLOGIES_DIR, TRUE);
-
g_test_init (&argc, &argv, NULL);
/* g_test_init() enables verbose logging by default, but Tracker is too
diff --git a/tests/libtracker-sparql/tracker-fd-test.c b/tests/libtracker-sparql/tracker-fd-test.c
index 3c260ccae..04cf8013e 100644
--- a/tests/libtracker-sparql/tracker-fd-test.c
+++ b/tests/libtracker-sparql/tracker-fd-test.c
@@ -783,8 +783,6 @@ main (gint argc, gchar **argv)
g_log_set_handler ("Tracker", G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_INFO, g_log_default_handler,
NULL);
}
- g_setenv ("TRACKER_DB_ONTOLOGIES_DIR", TEST_ONTOLOGIES_DIR, TRUE);
-
connection = create_dbus_connection (NULL);
g_test_add ("/steroids/tracker/tracker_sparql_query_iterate", DataFixture, NULL, insert_test_data,
diff --git a/tests/libtracker-sparql/tracker-sparql-test.c b/tests/libtracker-sparql/tracker-sparql-test.c
index f2211ee88..644c8425f 100644
--- a/tests/libtracker-sparql/tracker-sparql-test.c
+++ b/tests/libtracker-sparql/tracker-sparql-test.c
@@ -263,8 +263,6 @@ main (gint argc, gchar **argv)
setlocale (LC_ALL, "");
- g_setenv ("TRACKER_DB_ONTOLOGIES_DIR", TEST_ONTOLOGIES_DIR, TRUE);
-
g_test_init (&argc, &argv, NULL);
/* g_test_init() enables verbose logging by default, but Tracker is too
diff --git a/tests/meson.build b/tests/meson.build
index 5911592a6..e0647d9f2 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -21,7 +21,6 @@ foreach t: tests
test_env = environment()
test_env.set('TRACKER_LANGUAGE_STOP_WORDS_DIR', join_paths(source_root, 'src', 'libtracker-common',
'stop-words'))
- test_env.set('TRACKER_DB_ONTOLOGIES_DIR', join_paths(source_root, 'src', 'ontologies', 'nepomuk'))
test_env.set('LANG', 'en_US.UTF8')
test(test_name, test_exe,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]