# HG changeset patch # User Elliott Sales de Andrade # Date 1260674641 0 # Node ID c0c24f94721113bbf459795f1acc7677e0e10fe4 # Parent c76eb1c6f6ac3c434697a7c7f06b06ff31ed6c16 Allow toggling debugging in the test suite with the environment variable PURPLE_CHECK_DEBUG. diff -r c76eb1c6f6ac -r c0c24f947211 libpurple/tests/check_libpurple.c --- 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. */