mirror of
https://github.com/pevans/erc-c.git
synced 2024-12-18 04:29:18 +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);
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user