Solve legacy problem with clear operation (coredump with running threads)
[anna.git] / include / anna / testing / TestCase.hpp
index e87750c..3ebd535 100644 (file)
@@ -119,6 +119,9 @@ public:
   // Reset test case and underlaying information (steps context)
   bool reset(bool hard /* hard reset includes in-progress test cases */) throw();
 
+  // Check for clear (destroy steps)
+  bool safeToClear(); // false if something pending (running threads steps)
+
   // getters
   const unsigned int &getId() const throw() { return a_id; }
   const std::string &getDescription() const throw() { return a_description; }