diff --git a/scripts/eressea/tests/common.lua b/scripts/eressea/tests/common.lua index 8c8664992..365b87195 100644 --- a/scripts/eressea/tests/common.lua +++ b/scripts/eressea/tests/common.lua @@ -45,6 +45,7 @@ function test_flags() eressea.write_game("test.dat") eressea.free_game() eressea.read_game("test.dat") + os.remove('test.dat') f = get_faction(no) assert_equal(flags, f.flags) end diff --git a/scripts/eressea/tests/orders.lua b/scripts/eressea/tests/orders.lua index ce6ba9949..af1ba8863 100644 --- a/scripts/eressea/tests/orders.lua +++ b/scripts/eressea/tests/orders.lua @@ -105,6 +105,7 @@ function test_process_quit() eressea.write_game('test.dat') eressea.free_game() eressea.read_game('test.dat') + os.remove('test.dat') assert_equal(nil, _G.get_faction(fno)) end diff --git a/src/kernel/group.test.c b/src/kernel/group.test.c index 1272fc493..46d794d2d 100644 --- a/src/kernel/group.test.c +++ b/src/kernel/group.test.c @@ -50,6 +50,7 @@ static void test_group_readwrite(CuTest * tc) CuAssertPtrEquals(tc, 0, f->groups->allies->next); CuAssertPtrEquals(tc, f, f->groups->allies->faction); CuAssertIntEquals(tc, HELP_GIVE, f->groups->allies->status); + remove("test.dat"); test_cleanup(); }