pidgin: 884d4422: Use /dev/null for the purple directory f.
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Wed May 12 00:33:55 EDT 2010
-----------------------------------------------------------------
Revision: 884d44222e8c81ecec51c25e07d005e002a5479b
Ancestor: 4365754bb26d3baa94f666d0adf8f0b2d120156f
Author: darkrain42 at pidgin.im
Date: 2010-05-12T04:26:46
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/884d44222e8c81ecec51c25e07d005e002a5479b
Modified files:
libpurple/tests/check_libpurple.c
ChangeLog:
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.
-------------- next part --------------
============================================================
--- libpurple/tests/check_libpurple.c 30ff93a1f55aba6a59e724027ceb21900ef4c54a
+++ libpurple/tests/check_libpurple.c 97460d422d7fb0246559c2d34f8569251e4bab75
@@ -37,17 +37,23 @@ purple_check_init(void) {
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");
}
More information about the Commits
mailing list