diff options
author | Eugene Sandulenko | 2015-11-27 23:59:56 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2015-11-28 00:06:47 +0100 |
commit | b7735b020fa03219d96d3dce44b508d1da6dbc96 (patch) | |
tree | 63127636e0978de0ece970ef3d8784b99fba6421 | |
parent | 34a1d7aaaadf0aae731d57e324955dfbcc3a9986 (diff) | |
download | scummvm-rg350-b7735b020fa03219d96d3dce44b508d1da6dbc96.tar.gz scummvm-rg350-b7735b020fa03219d96d3dce44b508d1da6dbc96.tar.bz2 scummvm-rg350-b7735b020fa03219d96d3dce44b508d1da6dbc96.zip |
TESTBED: Added safety check
-rw-r--r-- | engines/testbed/testsuite.cpp | 3 |
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()); |