leak: remember to call test_cleanup

This commit is contained in:
Enno Rehling 2015-10-14 20:49:30 +02:00
parent 03ff8f612d
commit a3b27ad6d2

View file

@ -154,8 +154,10 @@ static void test_skip_token(CuTest *tc) {
static void test_replace_order(CuTest *tc) {
order *orders = 0, *orig, *repl;
struct locale * lang = get_or_create_locale("en");
struct locale * lang;
test_cleanup();
lang = get_or_create_locale("en");
orig = create_order(K_MAKE, lang, 0);
repl = create_order(K_ALLY, lang, 0);
replace_order(&orders, orig, repl);
@ -165,6 +167,7 @@ static void test_replace_order(CuTest *tc) {
CuAssertPtrNotNull(tc, orders);
CuAssertPtrEquals(tc, 0, orders->next);
CuAssertIntEquals(tc, getkeyword(repl), getkeyword(orders));
test_cleanup();
}
CuSuite *get_order_suite(void)