changeset 16526:32188b6d2db8

Use fatal asserts unconditionally in the test code. Perhaps this could be better integrated in some way, but this works.
author Richard Laager <rlaager@wiktel.com>
date Fri, 27 Apr 2007 18:16:43 +0000
parents 2da3e5a69ebc
children 1d3d54e964ce
files libpurple/tests/check_libpurple.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/tests/check_libpurple.c	Fri Apr 27 18:07:24 2007 +0000
+++ b/libpurple/tests/check_libpurple.c	Fri Apr 27 18:16:43 2007 +0000
@@ -54,7 +54,14 @@
 int main(void)
 {
 	int number_failed;
-	SRunner *sr = srunner_create (master_suite());
+	SRunner *sr;
+
+	/* Make g_return_... functions fatal, ALWAYS.
+	 * As this is the test code, this is NOT controlled
+	 * by PURPLE_FATAL_ASSERTS. */
+	g_log_set_always_fatal(G_LOG_LEVEL_CRITICAL);
+
+	sr = srunner_create (master_suite());
 
 	srunner_add_suite(sr, cipher_suite());
 	srunner_add_suite(sr, jabber_jutil_suite());