Adding tests for branch/carry and logging disasm on test failure.

This commit is contained in:
Ben Vanik
2015-06-06 10:59:22 -07:00
parent 29c77a3087
commit 6b52f6715a
8 changed files with 80 additions and 3 deletions

View File

@@ -177,6 +177,7 @@ class TestRunner {
processor.reset(new Processor(memory.get(), nullptr, nullptr));
processor->Setup();
processor->set_debug_info_flags(DebugInfoFlags::kDebugInfoAll);
}
~TestRunner() {
@@ -228,6 +229,10 @@ class TestRunner {
// Assert test state expectations.
bool result = CheckTestResults(test_case);
if (!result) {
// Also dump all disasm/etc.
fn->debug_info()->Dump();
}
return result;
}