| 1 | // |
|---|---|
| 2 | // TestResult.cpp |
| 3 | // |
| 4 | |
| 5 | |
| 6 | #include "Poco/CppUnit/TestResult.h" |
| 7 | |
| 8 | |
| 9 | namespace CppUnit { |
| 10 | |
| 11 | |
| 12 | // Destroys a test result |
| 13 | TestResult::~TestResult() |
| 14 | { |
| 15 | std::vector<TestFailure*>::iterator it; |
| 16 | |
| 17 | for (it = _errors.begin(); it != _errors.end(); ++it) |
| 18 | delete *it; |
| 19 | |
| 20 | for (it = _failures.begin(); it != _failures.end(); ++it) |
| 21 | delete *it; |
| 22 | |
| 23 | delete _syncObject; |
| 24 | } |
| 25 | |
| 26 | |
| 27 | } // namespace CppUnit |
| 28 |