1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-12-17 12:30:41 +00:00

Set the map machine on setup; revert to NULL on teardown

This commit is contained in:
Peter Evans 2018-01-03 15:21:24 -06:00
parent 484a11e976
commit 14f2dcae1a

View File

@ -10,12 +10,14 @@ setup()
{
mach = apple2_create(100, 100);
apple2_mem_map(mach);
vm_segment_set_map_machine(mach);
}
static void
teardown()
{
apple2_free(mach);
vm_segment_set_map_machine(NULL);
}
TestSuite(apple2_mem, .init = setup, .fini = teardown);