changeset 29914: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 0f3bff622a17
children 097569720d68 af5a46ecfb24 05797ab9b2c2
files libpurple/tests/check_libpurple.c
diffstat 1 files changed, 11 insertions(+), 5 deletions(-) [+]
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");
 }