Changeset 2943 for box/trunk/test


Ignore:
Timestamp:
23/04/2011 11:16:13 (13 months ago)
Author:
chris
Message:

Log the expected and actual values when comparison failed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/test/common/testcommon.cpp

    r2506 r2943  
    405405                        TEST_THAT(!getline.IsEOF()); 
    406406                        std::string line = getline.GetLine(true); 
    407                         //printf("expected |%s| got |%s|\n", lines[l], line.c_str()); 
    408                         TEST_THAT(strcmp(testfilelines[l], line.c_str()) == 0); 
     407                        printf("expected |%s| got |%s|\n", testfilelines[l], 
     408                                line.c_str()); 
     409                        TEST_LINE(strcmp(testfilelines[l], line.c_str()) == 0, 
     410                                line); 
    409411                        l++; 
    410412                } 
     
    456458                        while(!getline.GetLine(line, true)) 
    457459                                ; 
    458                         //printf("expected |%s| got |%s|\n", lines[l], line.c_str()); 
    459                         TEST_THAT(strcmp(testfilelines[l], line.c_str()) == 0); 
     460                        printf("expected |%s| got |%s|\n", testfilelines[l], 
     461                                line.c_str()); 
     462                        TEST_LINE(strcmp(testfilelines[l], line.c_str()) == 0, 
     463                                line); 
    460464                        l++; 
    461465                } 
Note: See TracChangeset for help on using the changeset viewer.