GB Test: Make sure to init core configs
Vicki Pfau vi@endrift.com
Sat, 05 Aug 2017 23:12:07 -0700
4 files changed,
5 insertions(+),
0 deletions(-)
M
src/gb/test/core.c
→
src/gb/test/core.c
@@ -29,6 +29,7 @@ M_TEST_DEFINE(reset) {
struct mCore* core = GBCoreCreate(); assert_non_null(core); assert_true(core->init(core)); + mCoreInitConfig(core, NULL); core->reset(core); core->deinit(core); }@@ -37,6 +38,7 @@ M_TEST_DEFINE(loadNullROM) {
struct mCore* core = GBCoreCreate(); assert_non_null(core); assert_true(core->init(core)); + mCoreInitConfig(core, NULL); assert_false(core->loadROM(core, NULL)); core->reset(core); core->deinit(core);
M
src/gb/test/mbc.c
→
src/gb/test/mbc.c
@@ -16,6 +16,7 @@ struct VFile* vf = VFileMemChunk(NULL, 2048);
GBSynthesizeROM(vf); struct mCore* core = GBCoreCreate(); core->init(core); + mCoreInitConfig(core, NULL); core->loadROM(core, vf); *state = core; return 0;
M
src/gb/test/memory.c
→
src/gb/test/memory.c
@@ -16,6 +16,7 @@ struct VFile* vf = VFileMemChunk(NULL, GB_SIZE_CART_BANK0 * 4);
GBSynthesizeROM(vf); struct mCore* core = GBCoreCreate(); core->init(core); + mCoreInitConfig(core, NULL); core->loadROM(core, vf); *state = core; return 0;
M
src/gb/test/rtc.c
→
src/gb/test/rtc.c
@@ -48,6 +48,7 @@ *state = NULL;
return -1; } test->core->init(test->core); + mCoreInitConfig(test->core, NULL); struct VFile* vf = VFileMemChunk(NULL, 2048); GBSynthesizeROM(vf); test->core->loadROM(test->core, vf);