From 7030646671d3f314a8749157c40a41003b22cb70 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 6 Aug 2022 14:42:09 -0400 Subject: [PATCH] Avoid infinite loop. --- OSBindings/Mac/Clock SignalTests/AmigaBlitterTests.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OSBindings/Mac/Clock SignalTests/AmigaBlitterTests.mm b/OSBindings/Mac/Clock SignalTests/AmigaBlitterTests.mm index d5bd34bfe..33f8b24b8 100644 --- a/OSBindings/Mac/Clock SignalTests/AmigaBlitterTests.mm +++ b/OSBindings/Mac/Clock SignalTests/AmigaBlitterTests.mm @@ -162,6 +162,11 @@ struct Chipset { // Loop until another [comparable] bus transaction appears, and test. while(true) { + if(!(blitter.get_status() & 0x4000)) { + XCTAssert(false, @"Blitter terminated early at index %lu", (unsigned long)index); + return; + } + blitter.advance_dma(); const auto transactions = blitter.get_and_reset_transactions();