Mercurial > pidgin
comparison libpurple/tests/check_libpurple.c @ 28790: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 | f3085a939a6d |
children | a40c55113f7d |
comparison
equal
deleted
inserted
replaced
28789:c76eb1c6f6ac | 28790:c0c24f947211 |
---|---|
65 int main(void) | 65 int main(void) |
66 { | 66 { |
67 int number_failed; | 67 int number_failed; |
68 SRunner *sr; | 68 SRunner *sr; |
69 | 69 |
70 if (g_getenv("PURPLE_CHECK_DEBUG")) | |
71 purple_debug_set_enabled(TRUE); | |
72 | |
70 /* Make g_return_... functions fatal, ALWAYS. | 73 /* Make g_return_... functions fatal, ALWAYS. |
71 * As this is the test code, this is NOT controlled | 74 * As this is the test code, this is NOT controlled |
72 * by PURPLE_FATAL_ASSERTS. */ | 75 * by PURPLE_FATAL_ASSERTS. */ |
73 g_log_set_always_fatal(G_LOG_LEVEL_CRITICAL); | 76 g_log_set_always_fatal(G_LOG_LEVEL_CRITICAL); |
74 | 77 |