all repos — mgba @ 1731d4f97581d1dfffb7b2aa8aa12661a7758671

mGBA Game Boy Advance Emulator

Test: Don't rely on core for frames elapsed
Vicki Pfau vi@endrift.com
Tue, 18 Apr 2017 02:53:22 -0700
commit

1731d4f97581d1dfffb7b2aa8aa12661a7758671

parent

9b0a5e566ec2de97baf5abbe0807922420e34006

2 files changed, 3 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -49,6 +49,7 @@ - Test: Fix crash when loading invalid file

- GBA Hardware: Fix crash if a savestate lies about game hardware - Test: Fix crash when fuzzing fails to load a file - GBA: Fix multiboot loading resulting in too small WRAM + - Test: Don't rely on core for frames elapsed Misc: - SDL: Remove scancode key input - GBA Video: Clean up unused timers
M src/platform/test/fuzz-main.csrc/platform/test/fuzz-main.c

@@ -176,9 +176,10 @@

static void _fuzzRunloop(struct mCore* core, int frames) { do { core->runFrame(core); + --frames; blip_clear(core->getAudioChannel(core, 0)); blip_clear(core->getAudioChannel(core, 1)); - } while (core->frameCounter(core) < frames && !_dispatchExiting); + } while (frames > 0 && !_dispatchExiting); } static void _fuzzShutdown(int signal) {