all repos — mgba @ c18c38b6169f7e7e52a0133a846929ceb3d88b0e

mGBA Game Boy Advance Emulator

GBA: Fix tests
Vicki Pfau vi@endrift.com
Sat, 18 May 2019 19:06:10 -0700
commit

c18c38b6169f7e7e52a0133a846929ceb3d88b0e

parent

4a3d042089d0ce8c02cf8093105a4933e9770e62

2 files changed, 6 insertions(+), 0 deletions(-)

jump to
M src/gba/test/cheats.csrc/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.csrc/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); }