You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by pa...@apache.org on 2001/09/14 23:01:18 UTC

cvs commit: xml-xalan/c/Tests/Compare compare.cpp

pauldick    01/09/14 14:01:18

  Modified:    c/Tests/Compare compare.cpp
  Log:
  Better error reporting based on new methods
  
  Revision  Changes    Path
  1.8       +5 -3      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.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- compare.cpp	2001/08/02 21:08:50	1.7
  +++ compare.cpp	2001/09/14 21:01:18	1.8
  @@ -265,7 +265,7 @@
   			// Create run entry that contains runid and number of iterations used for averages.
   			runAttrs.insert(Hashtable::value_type(XalanDOMString("UniqRunid"), UniqRunid));
   			runAttrs.insert(Hashtable::value_type(XalanDOMString("Xerces-Version "), futil.getXercesVersion()));
  -			logFile.logElement(10, "perfdata", runAttrs, "xxx");
  +			logFile.logElementWAttrs(10, "perfdata", runAttrs, "xxx");
   				
   			// Specify the "test" directory for both input and output.
   			const XalanDOMString  xDir("domcomtests");
  @@ -280,6 +280,8 @@
   
   					Hashtable attrs;
   					fileName = files[i];
  +					futil.data.reset();
  +					futil.data.testOrFile = fileName;
   
   					attrs.insert(Hashtable::value_type(XalanDOMString("idref"), fileName));
   					attrs.insert(Hashtable::value_type(XalanDOMString("UniqRunid"),UniqRunid));
  @@ -292,7 +294,7 @@
   
   					const XalanDOMString  outbase =  outputRoot + xDir + pathSep + fileName; 
   					const XalanDOMString  theOutputFile = futil.GenerateFileName(outbase, "out");
  -					cout << endl << endl << "Processing: " << fileName << endl;
  +					//cout << endl << endl << "Processing: " << fileName << endl;
   
   					const XSLTInputSource	xslInputSource(c_wstr(theXSLFile));
   					const XSLTInputSource	xmlInputSource(c_wstr(theXMLFile));
  @@ -331,7 +333,7 @@
   
   					if(!transResult)
   					{
  -						futil.compareResults(theOutputFile, compiledSS, dom, fileName, goldInputSource);
  +						futil.compareDOMResults(theOutputFile, compiledSS, dom, goldInputSource);
   					}
   					else
   					{
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org