# HG changeset patch # User Paul Aurich # Date 1273638406 0 # Node ID a40c55113f7d7569280838d129389831c528605e # Parent 0f3bff622a172f21dcc52d90b8d8b00eba5261f6 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. diff -r 0f3bff622a17 -r a40c55113f7d libpurple/tests/check_libpurple.c --- 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"); }