From 7ef18b15337a73b234c5a018bc22e7d7d838ae6b Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 7 Nov 2015 18:45:41 +0100 Subject: [PATCH] call cleanup --- src/spells/flyingship.test.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/spells/flyingship.test.c b/src/spells/flyingship.test.c index 05d28ed8d..00894ab0e 100644 --- a/src/spells/flyingship.test.c +++ b/src/spells/flyingship.test.c @@ -26,13 +26,13 @@ static void test_flyingship(CuTest * tc) ship_type *shipType1, *shipType2; ship *sh1, *sh2; + test_cleanup(); + test_create_world(); + par.param = &par_data_ptr; par_data.typ = SPP_SHIP; par_data.flag = 0; - test_cleanup(); - test_create_world(); - r = findregion(0, 0); f = test_create_faction(test_create_race("human")); u = test_create_unit(f, r); @@ -58,6 +58,7 @@ static void test_flyingship(CuTest * tc) CuAssertTrue(tc, !flying_ship(sh2)); CuAssertIntEquals(tc, 0, sp_flying_ship(&co)); CuAssertTrue(tc, !flying_ship(sh2)); + test_cleanup(); } CuSuite *get_flyingship_suite(void)