+ const char *literal = "FINISHED Test Case %llu/%llu [%s] => %s";
+ TestManager& testManager (TestManager::instantiate ());
+ LOGDEBUG(anna::Logger::debug(anna::functions::asString(literal, getId(), testManager.tests(), getDescription().c_str(), asText(a_state)), ANNA_FILE_LOCATION));
+
+ if (testManager.getDumpStdout()) {
+ std::cout << std::endl << anna::functions::asString(literal, getId(), testManager.tests(), getDescription().c_str(), asText(a_state)) << std::endl;
+ }
+
+ a_finishTimestamp = anna::functions::millisecond();
+
+ // Cancel existing timers:
+ std::vector<TestStep*>::iterator it;
+ for (it = a_steps.begin(); it != a_steps.end(); it++) {
+ if ((*it)->getType() == TestStep::Type::Timeout) {
+ TestStepTimeout *step = (TestStepTimeout *)(*it);
+ step->cancelTimer();
+ }
+ else if ((*it)->getType() == TestStep::Type::Delay) {
+ TestStepDelay *step = (TestStepDelay *)(*it);
+ step->cancelTimer();
+ }
+ }
+