changeset 29172:c0c24f947211

Allow toggling debugging in the test suite with the environment variable PURPLE_CHECK_DEBUG.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 13 Dec 2009 03:24:01 +0000
parents c76eb1c6f6ac
children b0f0b7a8105a
files libpurple/tests/check_libpurple.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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. */