Mercurial > pidgin.yaz
diff libpurple/tests/check_libpurple.c @ 30332:a40c55113f7d
Use /dev/null for the purple directory for the tests.
This addresses a 'make distcheck' complaint about status.xml and prefs.xml
not being removed, but left in the build directory.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Wed, 12 May 2010 04:26:46 +0000 |
parents | c0c24f947211 |
children | 6362579b3d2e |
line wrap: on
line diff
--- a/libpurple/tests/check_libpurple.c Wed May 12 01:25:17 2010 +0000 +++ b/libpurple/tests/check_libpurple.c Wed May 12 04:26:46 2010 +0000 @@ -37,16 +37,22 @@ static void purple_check_init(void) { - gchar *home_dir; - g_type_init(); purple_eventloop_set_ui_ops(&eventloop_ui_ops); +#if 0 /* build our fake home directory */ - home_dir = g_build_path(G_DIR_SEPARATOR_S, BUILDDIR, "libpurple", "tests", "home", NULL); - purple_util_set_user_dir(home_dir); - g_free(home_dir); + { + gchar *home_dir; + + home_dir = g_build_path(G_DIR_SEPARATOR_S, BUILDDIR, "libpurple", "tests", "home", NULL); + purple_util_set_user_dir(home_dir); + g_free(home_dir); + } +#else + purple_util_set_user_dir("/dev/null"); +#endif purple_core_init("check"); }