summaryrefslogtreecommitdiff
path: root/tests/testglib.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2004-08-26 00:08:46 +0000
committerTor Lillqvist <tml@src.gnome.org>2004-08-26 00:08:46 +0000
commitb359dbbf5ee28513e42c9336167012e78514d456 (patch)
treeaa226e57a8b7ddc16abb728f96d30edf4e9a160a /tests/testglib.c
parent1de0e063fec8d7cd2fdc2bac9d2eeaee54dfbc69 (diff)
Test the new XDG basedir functions.
2004-08-26 Tor Lillqvist <tml@iki.fi> * tests/testglib.c (main): Test the new XDG basedir functions.
Diffstat (limited to 'tests/testglib.c')
-rw-r--r--tests/testglib.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/testglib.c b/tests/testglib.c
index 76bd04552..83ee2cfe9 100644
--- a/tests/testglib.c
+++ b/tests/testglib.c
@@ -322,6 +322,8 @@ int
main (int argc,
char *argv[])
{
+ const gchar *s;
+ gchar **sv;
GList *list, *t;
GSList *slist, *st;
GHashTable *hash_table;
@@ -434,7 +436,20 @@ main (int argc,
g_free (string);
g_print ("user: %s\n", g_get_user_name ());
g_print ("real: %s\n", g_get_real_name ());
- g_print ("home: %s\n", g_get_home_dir ());
+ s = g_get_home_dir ();
+ g_print ("home: %s\n", s ? s : "NULL!");
+ s = g_get_home_dir ();
+ g_print ("home: %s\n", s ? s : "NULL!");
+ s = g_get_user_data_dir ();
+ g_print ("user_data: %s\n", s ? s : "NULL!");
+ s = g_get_user_config_dir ();
+ g_print ("user_config: %s\n", s ? s : "NULL!");
+ s = g_get_user_cache_dir ();
+ g_print ("user_cache: %s\n", s ? s : "NULL!");
+ sv = (gchar **) g_get_system_data_dirs ();
+ g_print ("system_data: %s\n", sv ? g_strjoinv (G_SEARCHPATH_SEPARATOR_S, sv) : "NULL!");
+ sv = (gchar **) g_get_system_config_dirs ();
+ g_print ("system_config: %s\n", s ? g_strjoinv (G_SEARCHPATH_SEPARATOR_S, sv) : "NULL!");
g_print ("tmp-dir: %s\n", g_get_tmp_dir ());
/* type sizes */