Sun, 15 Apr 2007 03:56:08 +0000
propagate from branch 'im.pidgin.rlaager.merging.msnp13-and-sf-1621854-4-rlaager-whitespace' (head df9df972434fafda3e8030977ab3c18d480d8fa8)
to branch 'im.pidgin.rlaager.merging.msnp13-and-pidgin' (head 46933dc6288036763e484bfb1906f1149ada01cf)
| 15104 | 1 | #ifndef TESTS_H |
| 2 | # define TESTS_H | |
| 3 | ||
| 4 | #include <glib.h> | |
| 5 | #include <check.h> | |
| 6 | ||
| 7 | /* define the test suites here */ | |
|
15867
27d45557637d
libpurplify the 'make check' tests so they work again
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15435
diff
changeset
|
8 | /* remember to add the suite to the runner in check_libpurple.c */ |
|
15950
0f01bb61c5d3
Fix compiler warnings and errors in tests resulting from using DEBUG_CFLAGS
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15867
diff
changeset
|
9 | Suite * master_suite(void); |
| 15154 | 10 | Suite * cipher_suite(void); |
| 11 | Suite * jabber_jutil_suite(void); | |
| 15104 | 12 | Suite * util_suite(void); |
| 13 | ||
| 14 | /* helper macros */ | |
| 15 | #define assert_string_equal(expected, actual) { \ | |
| 16 | const gchar *a = actual; \ | |
| 17 | fail_unless(strcmp(expected, a) == 0, "Expecting '%s' but got '%s'", expected, a); \ | |
| 18 | } | |
| 19 | ||
| 20 | #define assert_string_equal_free(expected, actual) { \ | |
| 15107 | 21 | gchar *b = actual; \ |
| 22 | assert_string_equal(expected, b); \ | |
| 23 | g_free(b); \ | |
| 15104 | 24 | } |
| 25 | ||
| 26 | ||
| 27 | #endif /* ifndef TESTS_H */ | |
| 28 |