Ignore:
Timestamp:
08/17/11 14:16:50 (13 years ago)
Author:
sherbold
Message:

+ replay.exe now return 1 in case of errors, e.g., failures parsing the replay XML

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MFCtooling/replay/replay.cpp

    r167 r169  
    5252        if( argc < 3 ) { 
    5353                std::wcout << L"Usage: " << argv[0] << L"<replayfile> <applicationundertest> [-r <resultfile>] [-d <useDefaultDelay>] [-w <waitAfterFinish>] [-p <workingPath>] [-s <startupDelay>]" << std::endl; 
    54                 return -1; 
     54                return 1; 
    5555        } 
    5656 
     
    124124                pXMLReader->putContentHandler(parser); 
    125125                hr = pXMLReader->parseURL(replayfile); 
     126                if( hr!=S_OK ) { 
     127                        std::wcout << L"failure parsing XML file" << std::endl; 
     128                        return 1; 
     129                } 
    126130                pXMLReader->Release(); 
    127131                std::wcout << L"================================================" << std::endl; 
Note: See TracChangeset for help on using the changeset viewer.