aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2015-11-27 23:59:56 +0100
committerEugene Sandulenko2015-11-28 00:06:47 +0100
commitb7735b020fa03219d96d3dce44b508d1da6dbc96 (patch)
tree63127636e0978de0ece970ef3d8784b99fba6421
parent34a1d7aaaadf0aae731d57e324955dfbcc3a9986 (diff)
downloadscummvm-rg350-b7735b020fa03219d96d3dce44b508d1da6dbc96.tar.gz
scummvm-rg350-b7735b020fa03219d96d3dce44b508d1da6dbc96.tar.bz2
scummvm-rg350-b7735b020fa03219d96d3dce44b508d1da6dbc96.zip
TESTBED: Added safety check
-rw-r--r--engines/testbed/testsuite.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/testbed/testsuite.cpp b/engines/testbed/testsuite.cpp
index 7729c4911b..853f1288b3 100644
--- a/engines/testbed/testsuite.cpp
+++ b/engines/testbed/testsuite.cpp
@@ -283,6 +283,9 @@ void Testsuite::execute() {
pt.y += getLineSeparation();
int numEnabledTests = getNumTestsEnabled();
+ if (!numEnabledTests)
+ return;
+
for (Common::Array<Test *>::iterator i = _testsToExecute.begin(); i != _testsToExecute.end(); ++i) {
if (!(*i)->enabled) {
logPrintf("Info! Skipping Test: %s, Skipped by configuration.\n", ((*i)->featureName).c_str());