Ignore:
Timestamp:
12/10/2006 21:47:14 (6 years ago)
Author:
chris
Message:
  • Record the file and line of first test failure, and print them

at the end of the test, useful for debugging when the first
failure has scrolled off screen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/infrastructure/buildenv-testmain-template.cpp

    r219 r979  
    4242 
    4343int failures = 0; 
     44int first_fail_line; 
     45std::string first_fail_file; 
    4446 
    4547int filedes_open_at_beginning = -1; 
     
    129131                        if(failures > 0) 
    130132                        { 
    131                                 printf("FAILED: %d tests failed\n", failures); 
     133                                printf("FAILED: %d tests failed (first at " 
     134                                        "%s:%d)\n", failures,  
     135                                        first_fail_file.c_str(), 
     136                                        first_fail_line); 
    132137                        } 
    133138                        else 
Note: See TracChangeset for help on using the changeset viewer.