--- a/libpurple/tests/meson.build Mon Sep 18 22:29:40 2017 -0500
+++ b/libpurple/tests/meson.build Thu Oct 05 21:24:11 2017 -0500
@@ -8,20 +8,23 @@
+test_ui = static_library( + '-DTEST_DATA_DIR="@0@/data"'.format(meson.current_source_dir()) + dependencies: [libpurple_dep, glib, dbus, dbus_glib] e = executable('test_' + prog, 'test_@0@.c'.format(prog),
'-DTEST_DATA_DIR="@0@/data"'.format(meson.current_source_dir())
- dependencies : [libpurple_dep, glib, dbus, dbus_glib])
+ dependencies : [libpurple_dep, glib, dbus, dbus_glib],
-test_ui = static_library(
- '-DTEST_DATA_DIR="@0@/data"'.format(meson.current_source_dir())
- dependencies: [libpurple_dep, glib, dbus, dbus_glib]
--- a/libpurple/tests/test_protocol_xfer.c Mon Sep 18 22:29:40 2017 -0500
+++ b/libpurple/tests/test_protocol_xfer.c Thu Oct 05 21:24:11 2017 -0500
@@ -27,6 +27,8 @@
/******************************************************************************
*****************************************************************************/
@@ -87,17 +89,7 @@
*****************************************************************************/
test_purple_protocol_xfer_setup(TestPurpleProtocolXferFixture *fixture, gconstpointer data) {
- /* we need to find a way to make this crap not required */
- // purple_core_init("testing");
- purple_dbus_init_ids();
- purple_protocols_init();
- purple_connections_init();
- purple_accounts_init();
/******************************************************************************
--- a/libpurple/tests/test_ui.c Mon Sep 18 22:29:40 2017 -0500
+++ b/libpurple/tests/test_ui.c Thu Oct 05 21:24:11 2017 -0500
@@ -34,7 +34,7 @@
/*** Conversation uiops ***/
@@ -63,8 +63,17 @@
+test_ui_purple_init(void) { + /* libpurple's built-in DNS resolution forks processes to perform + * blocking lookups without blocking the main process. It does not + * handle SIGCHLD itself, so if the UI does not you quickly get an army + * of zombie subprocesses marching around. + signal(SIGCHLD, SIG_IGN); /* Set a custom user directory (optional) */
purple_util_set_user_dir(TEST_DATA_DIR);
@@ -103,35 +112,3 @@
* the preferences using purple_plugins_save_loaded(PLUGIN_SAVE_PREF) */
purple_plugins_load_saved(TEST_DATA_DIR);
-main(int argc, char *argv[]) {
- const char *protocol = NULL;
- GMainLoop *loop = g_main_loop_new(NULL, FALSE);
- PurpleAccount *account;
- PurpleSavedStatus *status;
- /* libpurple's built-in DNS resolution forks processes to perform
- * blocking lookups without blocking the main process. It does not
- * handle SIGCHLD itself, so if the UI does not you quickly get an army
- * of zombie subprocesses marching around.
- signal(SIGCHLD, SIG_IGN);
- printf("libpurple initialized.\n");
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/libpurple/tests/test_ui.h Thu Oct 05 21:24:11 2017 -0500
@@ -0,0 +1,33 @@
+ * Purple is the legal property of its developers, whose names are too numerous + * to list here. Please refer to the COPYRIGHT file distributed with this + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA +#ifndef PURPLE_TEST_UI_H +#define PURPLE_TEST_UI_H +void test_ui_purple_init(void); +#endif /* PURPLE_TEST_UI_H */