From 407643c5759d69f30061173a10b1e2e7a9962d86 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 29 Apr 2019 15:40:17 -0400 Subject: [PATCH] Tweaks test length slightly to ensure this doesn't run beyond the final line's end. --- OSBindings/Mac/Clock SignalTests/QLTests.mm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/OSBindings/Mac/Clock SignalTests/QLTests.mm b/OSBindings/Mac/Clock SignalTests/QLTests.mm index 0088c5e33..90de0365c 100644 --- a/OSBindings/Mac/Clock SignalTests/QLTests.mm +++ b/OSBindings/Mac/Clock SignalTests/QLTests.mm @@ -42,7 +42,7 @@ class QL: public CPU::MC68000::BusHandler { void will_perform(uint32_t address, uint16_t opcode) { // Obtain the next line from the trace file. - char correct_state[300]; + char correct_state[300] = "\n"; gzgets(trace, correct_state, sizeof(correct_state)); ++line_count; @@ -136,7 +136,9 @@ class QL: public CPU::MC68000::BusHandler { _machine.reset(new QL(*roms[0], traceLocation.UTF8String)); // This is how many cycles it takes to exhaust the supplied trace file. - _machine->run_for(HalfCycles(23923191)); + _machine->run_for(HalfCycles(23923180)); + + _machine.reset(); } @end