Show
Ignore:
Timestamp:
07/31/09 08:38:18 (15 years ago)
Author:
vbarta
Message:

custom test location for harness tests (extended UnitTest?++), configurable tolerance - all tests pass (most of the time)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/tests/unittest-cpp/TestReporterStdout.cpp

    r418 r456  
    1919#endif 
    2020 
    21         using namespace std; 
    22     printf(errorFormat, details.filename, details.lineNumber, details.testName, failure); 
     21    using namespace std; 
     22 
     23    if (details.useFilename) { 
     24        // standard way 
     25        printf(errorFormat, details.filename, details.lineNumber, details.testName, failure); 
     26    } else {  
     27        // extended for BDM - the failure string already includes 
     28        // (custom) test location info 
     29        printf("%s\n", failure); 
     30    } 
    2331} 
    2432