summaryrefslogtreecommitdiff
path: root/src/cpu/testers/rubytest
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/testers/rubytest')
-rw-r--r--src/cpu/testers/rubytest/CheckTable.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpu/testers/rubytest/CheckTable.cc b/src/cpu/testers/rubytest/CheckTable.cc
index b4860b62b..f10132c89 100644
--- a/src/cpu/testers/rubytest/CheckTable.cc
+++ b/src/cpu/testers/rubytest/CheckTable.cc
@@ -106,6 +106,7 @@ CheckTable::addCheck(const Address& address)
Check*
CheckTable::getRandomCheck()
{
+ assert(m_check_vector.size() > 0);
return m_check_vector[random() % m_check_vector.size()];
}