1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-12-27 01:32:17 +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); mach = apple2_create(100, 100);
apple2_mem_map(mach); apple2_mem_map(mach);
vm_segment_set_map_machine(mach);
} }
static void static void
teardown() teardown()
{ {
apple2_free(mach); apple2_free(mach);
vm_segment_set_map_machine(NULL);
} }
TestSuite(apple2_mem, .init = setup, .fini = teardown); TestSuite(apple2_mem, .init = setup, .fini = teardown);