forked from github/server
storage takes ownership of the FILE* (really need to change this API).
This commit is contained in:
parent
16c03a8e0e
commit
f623133344
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue