X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Ftesting%2FTestManager.cpp;fp=source%2Ftesting%2FTestManager.cpp;h=e90d20d35d69af67911503680e5660658042b669;hp=87278f14ce768aa66fccaf82daf59c81f38e5897;hb=cef452116c2966d7eaa65ff31ee7613bf3ae1b93;hpb=1b744dbd580cc353d18b119eef361abe1850a91b diff --git a/source/testing/TestManager.cpp b/source/testing/TestManager.cpp index 87278f1..e90d20d 100644 --- a/source/testing/TestManager.cpp +++ b/source/testing/TestManager.cpp @@ -287,6 +287,10 @@ TestCase *TestManager::findTestCase(unsigned int id) const { // id = -1 provides TestCase *TestManager::getTestCase(unsigned int id, const std::string &description) { + if (id == 0) { // 0 is used to sequence automatically and get the value of 'tests() + 1' + id = tests() + 1; + } + test_pool_nc_it it = a_testPool.find(id); if (it != a_testPool.end()) return it->second;