Show
Ignore:
Timestamp:
11/24/09 17:26:50 (14 years ago)
Author:
mido
Message:

a small improvement of TestRunner?, now cleaning enviroment for each test - but it did not help, merger_2d_stress (and others) is stil running improperly

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/tests/unittest-cpp/TestRunner.h

    r706 r736  
    3232                while ( curTest != 0 ) { 
    3333                        if ( IsTestInSuite ( curTest, suiteName ) && predicate ( curTest ) ) 
     34                        { 
     35                                ClearEnvironment(); 
    3436                                RunTest ( m_result, curTest, maxTestTimeInMs ); 
     37                        } 
     38 
    3539 
    3640                        curTest = curTest->next; 
     
    4751        int Finish() const; 
    4852        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; 
    5055}; 
    5156