GBA: Fix tests
Vicki Pfau vi@endrift.com
Sat, 18 May 2019 19:06:10 -0700
2 files changed,
6 insertions(+),
0 deletions(-)
M
src/gba/test/cheats.c
→
src/gba/test/cheats.c
@@ -16,6 +16,7 @@
static int cheatsSetup(void** state) { struct mCore* core = GBACoreCreate(); core->init(core); + mCoreInitConfig(core, NULL); core->cheatDevice(core); *state = core; return 0;@@ -26,6 +27,7 @@ if (!*state) {
return 0; } struct mCore* core = *state; + mCoreConfigDeinit(&core->config); core->deinit(core); return 0; }
M
src/gba/test/core.c
→
src/gba/test/core.c
@@ -27,7 +27,9 @@ M_TEST_DEFINE(reset) {
struct mCore* core = GBACoreCreate(); assert_non_null(core); assert_true(core->init(core)); + mCoreInitConfig(core, NULL); core->reset(core); + mCoreConfigDeinit(&core->config); core->deinit(core); }@@ -36,7 +38,9 @@ struct mCore* core = GBACoreCreate();
assert_non_null(core); assert_true(core->init(core)); assert_false(core->loadROM(core, NULL)); + mCoreInitConfig(core, NULL); core->reset(core); + mCoreConfigDeinit(&core->config); core->deinit(core); }