Allow toggling debugging in the test suite with the environment variable

Sun, 13 Dec 2009 03:24:01 +0000

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Sun, 13 Dec 2009 03:24:01 +0000
changeset 29126
5d92b5f0864d
parent 29125
6a53fd54a74b
child 29127
bfb0ac15c730

Allow toggling debugging in the test suite with the environment variable
PURPLE_CHECK_DEBUG.

libpurple/tests/check_libpurple.c file | annotate | diff | comparison | revisions
--- a/libpurple/tests/check_libpurple.c	Sun Dec 13 02:36:08 2009 +0000
+++ b/libpurple/tests/check_libpurple.c	Sun Dec 13 03:24:01 2009 +0000
@@ -67,6 +67,9 @@
 	int number_failed;
 	SRunner *sr;
 
+	if (g_getenv("PURPLE_CHECK_DEBUG"))
+		purple_debug_set_enabled(TRUE);
+
 	/* Make g_return_... functions fatal, ALWAYS.
 	 * As this is the test code, this is NOT controlled
 	 * by PURPLE_FATAL_ASSERTS. */

mercurial