pauldick    01/10/11 11:12:56

  Modified:    c/Tests/Compare compare.cpp
  Log:
  Updated to run with harness changes that provide better result logging.
  
  Revision  Changes    Path
  1.9       +7 -14     xml-xalan/c/Tests/Compare/compare.cpp
  
  Index: compare.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/Tests/Compare/compare.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- compare.cpp       2001/09/14 21:01:18     1.8
  +++ compare.cpp       2001/10/11 18:12:56     1.9
  @@ -99,7 +99,7 @@
   printArgOptions()
   {
        cerr << endl
  -              << "Perf dirname [-out -gold]"
  +              << "compare dirname [-out -gold]"
                 << endl
                 << endl
                 << "dirname            (base directory for testcases)"
  @@ -329,26 +329,19 @@
                                        //
                                        // Perform One transform using parsed 
stylesheet and unparsed xml source, report results...
                                        // 
  -                                     transResult = 
xalan.transform(*parsedSource, compiledSS, domResultTarget);
  +                                     xalan.transform(*parsedSource, 
compiledSS, domResultTarget);
  +                                     futil.checkDOMResults(theOutputFile, 
compiledSS, dom, goldInputSource, logFile);
   
  -                                     if(!transResult)
  -                                     {
  -                                             
futil.compareDOMResults(theOutputFile, compiledSS, dom, goldInputSource);
  -                                     }
  -                                     else
  -                                     {
  -                                             cout << xalan.getLastError();
  -                                             return 0;
  -                                     }
  -
                                        parserLiaison.reset();
                                        xalan.destroyParsedSource(parsedSource);
                                        xalan.destroyStylesheet(compiledSS);
   
                                }//for files
  +
  +                     futil.reportPassFail(logFile, UniqRunid);
  +                     logFile.logTestFileClose("DomCom ", "Done");
  +                     logFile.close();
   
  -             logFile.logTestFileClose("Performance", "Done");
  -             logFile.close();
   
                } //if getParams
        }
  
  
  

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

Reply via email to