pidgin: e6f62ec2: Allow toggling debugging in the test sui...

qulogic at pidgin.im qulogic at pidgin.im
Sat Dec 12 22:35:52 EST 2009


-----------------------------------------------------------------
Revision: e6f62ec2cc8e7a34eaf1bf60cfbf3f3194a6d6e7
Ancestor: f5dafda2854ad5c6934d84a69ca9f561575eb35a
Author: qulogic at pidgin.im
Date: 2009-12-13T03:24:01
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/e6f62ec2cc8e7a34eaf1bf60cfbf3f3194a6d6e7

Modified files:
        libpurple/tests/check_libpurple.c

ChangeLog: 

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

-------------- next part --------------
============================================================
--- libpurple/tests/check_libpurple.c	3ac00edf4b2631b0a3c41f4017a0afb19ce6bc40
+++ libpurple/tests/check_libpurple.c	30ff93a1f55aba6a59e724027ceb21900ef4c54a
@@ -67,6 +67,9 @@ int main(void)
 	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. */


More information about the Commits mailing list