Mercurial > pidgin.yaz
comparison libpurple/tests/check_libpurple.c @ 16534:32188b6d2db8
Use fatal asserts unconditionally in the test code. Perhaps this could be better integrated in some way, but this works.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Fri, 27 Apr 2007 18:16:43 +0000 |
parents | 6577b292e7b4 |
children | 743ff8e14b17 |
comparison
equal
deleted
inserted
replaced
16533:2da3e5a69ebc | 16534:32188b6d2db8 |
---|---|
52 } | 52 } |
53 | 53 |
54 int main(void) | 54 int main(void) |
55 { | 55 { |
56 int number_failed; | 56 int number_failed; |
57 SRunner *sr = srunner_create (master_suite()); | 57 SRunner *sr; |
58 | |
59 /* Make g_return_... functions fatal, ALWAYS. | |
60 * As this is the test code, this is NOT controlled | |
61 * by PURPLE_FATAL_ASSERTS. */ | |
62 g_log_set_always_fatal(G_LOG_LEVEL_CRITICAL); | |
63 | |
64 sr = srunner_create (master_suite()); | |
58 | 65 |
59 srunner_add_suite(sr, cipher_suite()); | 66 srunner_add_suite(sr, cipher_suite()); |
60 srunner_add_suite(sr, jabber_jutil_suite()); | 67 srunner_add_suite(sr, jabber_jutil_suite()); |
61 srunner_add_suite(sr, util_suite()); | 68 srunner_add_suite(sr, util_suite()); |
62 | 69 |