Changeset 736 for library/tests/unittest-cpp
- Timestamp:
- 11/24/09 17:26:50 (15 years ago)
- Location:
- library/tests/unittest-cpp
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/unittest-cpp/CMakeLists.txt
r691 r736 12 12 add_library(unittest ${unittest_src}) 13 13 14 target_link_libraries(unittest bdm) 15 16 14 17 # From CMake version 2.8, it is not allowed to add subdirectories without 15 18 # their CMakeLists, therfore the following two lines were commented out: -
library/tests/unittest-cpp/TestRunner.cpp
r706 r736 5 5 #include "TimeHelpers.h" 6 6 #include "MemoryOutStream.h" 7 8 9 #include "../bdm/base/bdmbase.h" 7 10 8 11 #include <cstring> … … 67 70 } 68 71 72 void TestRunner::ClearEnvironment() const { 73 bdm::RV::clear_all(); 69 74 } 75 76 } -
library/tests/unittest-cpp/TestRunner.h
r706 r736 32 32 while ( curTest != 0 ) { 33 33 if ( IsTestInSuite ( curTest, suiteName ) && predicate ( curTest ) ) 34 { 35 ClearEnvironment(); 34 36 RunTest ( m_result, curTest, maxTestTimeInMs ); 37 } 38 35 39 36 40 curTest = curTest->next; … … 47 51 int Finish() const; 48 52 bool IsTestInSuite ( const Test* const curTest, char const* suiteName ) const; 49 void RunTest ( TestResults* const result, Test* const curTest, int const maxTestTimeInMs ) const; 53 void RunTest ( TestResults* const result, Test* const curTest, int const maxTestTimeInMs ) const; 54 void ClearEnvironment() const; 50 55 }; 51 56