Solve legacy problem with clear operation (coredump with running threads)
[anna.git] / include / anna / testing / TestManager.hpp
index fec33e6..40d5370 100644 (file)
@@ -158,7 +158,7 @@ class TestManager : public anna::timex::TimeEventObserver, public anna::Singleto
     //  through the time manager. The first call to this method will start the time trigger system and check for new test cases to be launched.
     bool configureTTPS(int testTicksPerSecond) throw();
 
-    bool clearPool() throw();
+    bool clearPool(std::string &result) throw();
     bool resetPool(bool hard /* hard reset includes in-progress test cases */) throw();
     void setPoolRepeats(int repeats) throw() { a_poolRepeats = repeats; }
     int getPoolRepeats() const throw() { return a_poolRepeats; }
@@ -175,6 +175,7 @@ class TestManager : public anna::timex::TimeEventObserver, public anna::Singleto
     void setInProgressLimit(unsigned int limit) throw() { a_inProgressLimit = limit; } // -1 = UINT_MAX (no limit)
 
     bool gotoTestCase(unsigned int id) throw();
+    bool runTestCase(unsigned int id) throw();
     TestCase *findTestCase(unsigned int id) const throw(); // id = -1 provides current test case triggered
     TestCase *getTestCase(unsigned int id, const std::string &description = "") throw(); // creates/reuses a test case