From 84a2d0f952c8bc1f70f365072e51e691f507cfaa Mon Sep 17 00:00:00 2001 From: Adrian Conlon <98398945+AdrianConlon@users.noreply.github.com> Date: Sun, 31 Dec 2023 14:21:17 +0000 Subject: [PATCH] Whoops: failed to check cycle problems in M6502 tests --- M6502/HarteTest_6502/checker_t.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/M6502/HarteTest_6502/checker_t.cpp b/M6502/HarteTest_6502/checker_t.cpp index adde46c..2dfe7d0 100644 --- a/M6502/HarteTest_6502/checker_t.cpp +++ b/M6502/HarteTest_6502/checker_t.cpp @@ -159,6 +159,8 @@ bool checker_t::checkState(test_t test) { const auto& actual_action = std::get<2>(actual); check("Cycle action", expected_action, std::string_view(actual_action)); } + if (!m_messages.empty()) + return false; const auto final = test.final(); const auto pc_good = check("PC", final.pc(), cpu.PC().word);