Skip to content

Commit

Permalink
[Sim][#37] Fail if ran into an infinite state-update loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
kosarev committed Jun 13, 2022
1 parent adef220 commit 5d03dc8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/z80sim/z80sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,8 @@ def __update_group_of(self, n, more):
def __update_nodes(self, nodes):
attempt = 0
while nodes:
# Loop limiter.
attempt += 1
if attempt > 100:
break
assert attempt < 100, 'Loop encountered!'

more = []
for n in nodes:
Expand Down

0 comments on commit 5d03dc8

Please sign in to comment.