(file) Return to Tracer.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common / tests / Tracer

Diff for /pegasus/src/Pegasus/Common/tests/Tracer/Tracer.cpp between version 1.41 and 1.42

version 1.41, 2008/09/18 07:50:09 version 1.42, 2008/09/18 08:01:39
Line 166 
Line 166 
     PEG_METHOD_ENTER(TRC_CONFIG,METHOD_NAME);     PEG_METHOD_ENTER(TRC_CONFIG,METHOD_NAME);
     PEG_TRACE((TRC_CONFIG,Tracer::LEVEL2,"%s %d",     PEG_TRACE((TRC_CONFIG,Tracer::LEVEL2,"%s %d",
         "This message should not appear value=",123));         "This message should not appear value=",123));
     Uint32 fileSize;      Uint32 fileSize = 0;
     System::getFileSize(FILE1, fileSize);     System::getFileSize(FILE1, fileSize);
     return (fileSize == 0) ? 0 : 1;     return (fileSize == 0) ? 0 : 1;
 } }
Line 189 
Line 189 
     PEG_METHOD_ENTER(TRC_CONFIG,METHOD_NAME);     PEG_METHOD_ENTER(TRC_CONFIG,METHOD_NAME);
     PEG_TRACE((TRC_CONFIG,Tracer::LEVEL2,"%s",     PEG_TRACE((TRC_CONFIG,Tracer::LEVEL2,"%s",
         "This message should not appear"));         "This message should not appear"));
     Uint32 fileSize;      Uint32 fileSize = 0;
     System::getFileSize(FILE1, fileSize);     System::getFileSize(FILE1, fileSize);
     return (fileSize == 0) ? 0 : 1;     return (fileSize == 0) ? 0 : 1;
 } }
Line 926 
Line 926 
     }     }
  
  
     if (!trcHdler->isValidMessageDestination(filename))      if (!Tracer::setTraceFile(filename))
     {     {
         cout << "Failure in call to isValidMessageDestination for file \""          cout << "Failure in call to setTraceFile for file \""
                 << filename << "\"\n" << endl;                 << filename << "\"\n" << endl;
         PEGASUS_TEST_ASSERT(0);         PEGASUS_TEST_ASSERT(0);
     }     }
     trcHdler->setMessageDestination(filename);  
     trcHdler->flushTrace();     trcHdler->flushTrace();
  
     // To test the variable messages, we replace the variable message     // To test the variable messages, we replace the variable message
Line 1053 
Line 1053 
                          "%s",                          "%s",
                           veryLongMSG);                           veryLongMSG);
  
         trcHdler->setMessageDestination(filename);          Tracer::setTraceFile(filename);
         trcHdler->flushTrace();         trcHdler->flushTrace();
  
         // resuse the buffer for reading the result file.         // resuse the buffer for reading the result file.


Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2