Fixed automatic tests...

This commit is contained in:
Souryo 2014-06-25 12:47:15 -04:00
parent fbaf3bc42e
commit 9f68ce1a8c
2 changed files with 2 additions and 1 deletions

View file

@ -123,7 +123,7 @@ bool Console::RunTest(uint8_t *expectedResult)
_ppu->Exec();
if(timer.GetElapsedMS() > 100) {
if(memcmp(_ppu->GetFrameBuffer(), expectedResult, 256 * 240 * 4)) {
if(memcmp(_ppu->GetFrameBuffer(), expectedResult, 256 * 240 * 4) == 0) {
return true;
}

View file

@ -312,6 +312,7 @@ namespace NES {
if(testResult) {
uint8_t* expectedResult = new uint8_t[256 * 240 * 4];
testResult.read((char*)expectedResult, 256 * 240 * 4);
Console *console = new Console(L"../TestSuite/" + testROM);
std::wcout << testROM << ": ";