storage takes ownership of the FILE* (really need to change this API).

This commit is contained in:
Enno Rehling 2014-11-03 19:03:44 +01:00
parent 16c03a8e0e
commit f623133344
1 changed files with 0 additions and 2 deletions

View File

@ -30,7 +30,6 @@ static void test_group_readwrite(CuTest * tc)
al->status = HELP_GIVE; al->status = HELP_GIVE;
write_groups(&store, f); write_groups(&store, f);
binstore_done(&store); binstore_done(&store);
fclose(F);
F = fopen("test.dat", "rb"); F = fopen("test.dat", "rb");
binstore_init(&store, F); binstore_init(&store, F);
@ -38,7 +37,6 @@ static void test_group_readwrite(CuTest * tc)
free_group(g); free_group(g);
read_groups(&store, f); read_groups(&store, f);
binstore_done(&store); binstore_done(&store);
fclose(F);
CuAssertPtrNotNull(tc, f->groups); CuAssertPtrNotNull(tc, f->groups);
CuAssertPtrNotNull(tc, f->groups->allies); CuAssertPtrNotNull(tc, f->groups->allies);