Changeset 3060 for box


Ignore:
Timestamp:
22/01/2012 16:19:19 (4 months ago)
Author:
chris
Message:

Log disabling of exception logging to help understand test output.

Allow std::ostringstream formatting in expected/actual output comparison.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/common/Test.h

    r2940 r3060  
    5656                bool didthrow = false; \ 
    5757                HideExceptionMessageGuard hide; \ 
     58                BOX_TRACE("Exception logging disabled at " __FILE__ ":" \ 
     59                        << __LINE__); \ 
    5860                try \ 
    5961                { \ 
     
    9294        if(_exp_str != _found_str) \ 
    9395        { \ 
    94                 printf("Expected <%s> but found <%s>\n", \ 
    95                         _exp_str.c_str(), _found_str.c_str()); \ 
     96                BOX_ERROR("Expected <" << _exp_str << "> but found <" << \ 
     97                        _found_str << ">"); \ 
    9698                \ 
    9799                std::ostringstream _oss3; \ 
Note: See TracChangeset for help on using the changeset viewer.