libpurple/tests/test_contact.c

changeset 42866
4b201e18638f
parent 42184
4e1bf25f5575
child 43101
085f4a5b74fe
--- a/libpurple/tests/test_contact.c	Tue Aug 13 01:31:18 2024 -0500
+++ b/libpurple/tests/test_contact.c	Tue Aug 13 01:41:26 2024 -0500
@@ -20,8 +20,6 @@
 
 #include <purple.h>
 
-#include "test_ui.h"
-
 /******************************************************************************
  * Tests
  *****************************************************************************/
@@ -81,22 +79,15 @@
 /******************************************************************************
  * Main
  *****************************************************************************/
-gint
-main(gint argc, gchar *argv[]) {
-	gint ret = 0;
-
+int
+main(int argc, char *argv[]) {
 	g_test_init(&argc, &argv, NULL);
-
-	test_ui_purple_init();
+	g_test_set_nonfatal_assertions();
 
 	g_test_add_func("/contact/new",
 	                test_purple_contact_new);
 	g_test_add_func("/contact/properties",
 	                test_purple_contact_properties);
 
-	ret = g_test_run();
-
-	test_ui_purple_uninit();
-
-	return ret;
+	return g_test_run();
 }

mercurial