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:
parent
484a11e976
commit
14f2dcae1a
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user