pauldick    01/03/19 13:48:35

  Modified:    c/Tests/Memory Stressmem.cpp
  Log:
  Added logging.
  
  Revision  Changes    Path
  1.9       +13 -7     xml-xalan/c/Tests/Memory/Stressmem.cpp
  
  Index: Stressmem.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/Tests/Memory/Stressmem.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Stressmem.cpp     2001/03/19 14:54:57     1.8
  +++ Stressmem.cpp     2001/03/19 21:48:34     1.9
  @@ -176,8 +176,9 @@
                // Get the list of Directories that are below perf
                const FileNameVectorType        dirs = 
f.getDirectoryNames(confDir);
   
  -             //XMLFileReporter       logFile("cpp.xml");
  -             //logFile.logTestFileInit("Memory Testing - Memory leaks 
detected during ConformanceTests. ");
  +             
  +             XMLFileReporter 
logFile("d:\\xslt\\xsl-test\\perf-dataxml\\cpp-mem.xml");
  +             logFile.logTestFileInit("Memory Testing - Memory leaks detected 
during ConformanceTests. ");
   
                try
                {
  @@ -202,13 +203,9 @@
                                                if (checkForExclusion(files[i]) 
== false)
                                                {
                                                        // Output file name to 
result log.
  -                                                     
//logFile.logTestCaseInit(files[i]);
  +                                                     
logFile.logTestCaseInit(files[i]);
                                                        cout << files[i] << 
endl;
   
  -                                     //              const XalanDOMString    
theXMLFile= confDir + dirs[j] + pathSep + files[i];
  -                                     //              const XalanDOMString    
outFile = outDir + dirs[j] + pathSep + files[i];
  -                                     //              const XalanDOMString    
theXSLFile = f.GenerateFileName(theXMLFile,"xsl");
  -                                     //              const XalanDOMString    
theOutputFile = f.GenerateFileName(outFile, "out");
   
                                                        const XalanDOMString  
theXSLFile= confDir + dirs[j] + pathSep + files[i];
                                                        const XalanDOMString  
theXMLFile = f.GenerateFileName(theXSLFile,"xml");
  @@ -226,8 +223,13 @@
   
                                                        if(theResult != 0)
                                                        {
  +                                                             
logFile.logTestCaseClose("Done","Fail");
                                                                cerr << 
"XalanError: \n" << transformEngine.getLastError();
                                                        }
  +                                                     else
  +                                                     {
  +                                                             
logFile.logTestCaseClose("Done","Pass");
  +                                                     }
                                                }
                                        }
                                }
  @@ -236,6 +238,10 @@
                        XalanTransformer::terminate();
   
                        XMLPlatformUtils::Terminate();
  +
  +                     logFile.logTestFileClose("Memory Testing: ", "Done");
  +                     logFile.close();
  +
                }
                catch(...)
                {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to