summaryrefslogtreecommitdiff
path: root/tests/testdirlist.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2000-09-15 04:30:25 +0000
committerHavoc Pennington <hp@src.gnome.org>2000-09-15 04:30:25 +0000
commit2d47cb0679b9cb7798e9d394680c100855428e56 (patch)
treee6479835d960f9c42e7191c6ffaea5b7d3911b5f /tests/testdirlist.c
parent5b8d7a001907c6ebd770adca7ac2d331319a7430 (diff)
downloadgconf-2d47cb0679b9cb7798e9d394680c100855428e56.tar.gz
Update to return fully qualified name in GConfEntry
2000-09-14 Havoc Pennington <hp@pobox.com> * gconf/gconf.c (gconf_engine_all_dirs): Update to return fully qualified name in GConfEntry (gconf_engine_all_entries): missed the local case earlier when adapting it to use fully-qualified name * acinclude.m4: Add never-use-included-gettext macro * configure.in: Bump version to 0.9
Diffstat (limited to 'tests/testdirlist.c')
-rw-r--r--tests/testdirlist.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/testdirlist.c b/tests/testdirlist.c
index c9ab3a89..fbb9dcef 100644
--- a/tests/testdirlist.c
+++ b/tests/testdirlist.c
@@ -104,7 +104,7 @@ check_dir_listing(GConfEngine* conf)
iter2 = entries;
while (iter2 != NULL)
{
- if (strcmp(iter2->data, "testing") == 0)
+ if (strcmp(iter2->data, "/testing") == 0)
got_it = TRUE;
iter2 = g_slist_next(iter2);
@@ -124,7 +124,7 @@ check_dir_listing(GConfEngine* conf)
iter2 = entries;
while (iter2 != NULL)
{
- if (strcmp(iter2->data, "foo") == 0)
+ if (strcmp(iter2->data, "/testing/foo") == 0)
got_it = TRUE;
iter2 = g_slist_next(iter2);
@@ -147,9 +147,12 @@ check_dir_listing(GConfEngine* conf)
iter = keys_in_foo;
while (*iter)
{
- if (strcmp(iter2->data, *iter) == 0)
+ gchar *full = gconf_concat_key_and_dir ("/testing/foo", *iter);
+ if (strcmp(iter2->data, full) == 0)
found[i] = TRUE;
-
+
+ g_free (full);
+
++i;
++iter;
}