forked from github/server
leak: remember to call test_cleanup
This commit is contained in:
parent
03ff8f612d
commit
a3b27ad6d2
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue