[tracker] libtracker-data: Create directory in ontology test
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Create directory in ontology test
- Date: Wed, 24 Mar 2010 17:08:35 +0000 (UTC)
commit 37e8d054d34a26f5cd6bb8c86d23cf808491ea11
Author: Jürg Billeter <j bitron ch>
Date: Wed Mar 24 17:41:30 2010 +0100
libtracker-data: Create directory in ontology test
tests/libtracker-data/tracker-ontology-test.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/tests/libtracker-data/tracker-ontology-test.c b/tests/libtracker-data/tracker-ontology-test.c
index a289a67..b6d7891 100644
--- a/tests/libtracker-data/tracker-ontology-test.c
+++ b/tests/libtracker-data/tracker-ontology-test.c
@@ -219,6 +219,7 @@ test_ontology_change (void)
gchar *ontology_file;
GFile *file2;
gchar *prefix;
+ gchar *ontology_dir;
guint i;
GError *error = NULL;
gchar *test_schemas[4] = { NULL, NULL, NULL, NULL };
@@ -237,6 +238,10 @@ test_ontology_change (void)
g_file_delete (file2, NULL, NULL);
+ ontology_dir = g_build_path (G_DIR_SEPARATOR_S, prefix, "change", "ontologies", NULL);
+ g_mkdir (ontology_dir, 0777);
+ g_free (ontology_dir);
+
for (i = 0; changes[i].ontology; i++) {
GFile *file1;
gchar *queries = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]