Changeset 2166


Ignore:
Timestamp:
28/05/2008 10:42:37 (4 years ago)
Author:
chris
Message:

Set program name in tests to module name (e.g. test/bbackupd).

Add option to show PID in logs (-P) in tests.

File:
1 edited

Legend:

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

    r2141 r2166  
    165165        MEMLEAKFINDER_START 
    166166 
     167        Logging::SetProgramName(BOX_MODULE); 
     168 
    167169#ifdef HAVE_GETOPT_H 
    168170        #ifdef NDEBUG 
     
    182184        int ch; 
    183185         
    184         while ((ch = getopt_long(argc, argv, "c:d:qs:t:vTUV", longopts, NULL)) 
     186        while ((ch = getopt_long(argc, argv, "c:d:qs:t:vPTUV", longopts, NULL)) 
    185187                != -1) 
    186188        { 
     
    213215                        } 
    214216                        break; 
     217 
     218                        #ifndef WIN32 
     219                        case 'P': 
     220                        { 
     221                                Console::SetShowPID(true); 
     222                        } 
     223                        break; 
     224                        #endif 
    215225 
    216226                        case 'q': 
Note: See TracChangeset for help on using the changeset viewer.