From c18c38b6169f7e7e52a0133a846929ceb3d88b0e Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sat, 18 May 2019 19:06:10 -0700 Subject: [PATCH] GBA: Fix tests --- src/gba/test/cheats.c | 2 ++ src/gba/test/core.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/gba/test/cheats.c b/src/gba/test/cheats.c index 6f4b8cb4c..527c3ccdc 100644 --- a/src/gba/test/cheats.c +++ b/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 @@ static int cheatsTeardown(void** state) { return 0; } struct mCore* core = *state; + mCoreConfigDeinit(&core->config); core->deinit(core); return 0; } diff --git a/src/gba/test/core.c b/src/gba/test/core.c index acb0165af..9313010b6 100644 --- a/src/gba/test/core.c +++ b/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 @@ M_TEST_DEFINE(loadNullROM) { 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); }