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/10/11 20:27:26 UTC

cvs commit: xml-xalan/c/Tests/Harness FileUtility.hpp

pauldick    01/10/11 11:27:26

  Modified:    c/Tests/Harness FileUtility.hpp
  Log:
  Renamed compareDomResults to checkDOMResults and added
  logfile parameter. reportPassFail now takes UniqRunId as a parameter.
  Added 3 inline debug functions.
  
  Revision  Changes    Path
  1.13      +32 -4     xml-xalan/c/Tests/Harness/FileUtility.hpp
  
  Index: FileUtility.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/Tests/Harness/FileUtility.hpp,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- FileUtility.hpp	2001/09/26 13:10:36	1.12
  +++ FileUtility.hpp	2001/10/11 18:27:26	1.13
  @@ -99,7 +99,7 @@
   /**
    * Utility call that extracts test file names from testsuite.  
    * @author Paul Dick@lotus.com
  - * @version $Id: FileUtility.hpp,v 1.12 2001/09/26 13:10:36 pauldick Exp $
  + * @version $Id: FileUtility.hpp,v 1.13 2001/10/11 18:27:26 pauldick Exp $
    */
   
   #if defined HARNESS_EXPORTS
  @@ -232,11 +232,12 @@
   	* call domCompare.  
   	* @returns Void.
   	*/
  -	bool
  -	FileUtility::compareDOMResults(const XalanDOMString& theOutputFile, 
  +	void
  +	FileUtility::checkDOMResults(const XalanDOMString& theOutputFile, 
   								const XalanCompiledStylesheet* compiledSS, 
   								XalanSourceTreeDocument* dom,
  -								const XSLTInputSource& goldInputSource);
  +								const XSLTInputSource& goldInputSource,
  +								XMLFileReporter& logfile);
   
   	bool
   	FileUtility::compareSerializedResults(const XalanDOMString& transformResult,
  @@ -289,6 +290,9 @@
   	void
   	FileUtility::reportPassFail(XMLFileReporter& logfile);
   
  +	void
  +	FileUtility::reportPassFail(XMLFileReporter& logfile, const XalanDOMString& runid);
  +
   private:
   
   	/** 
  @@ -307,7 +311,31 @@
   	*/
   	void
   	FileUtility::reportError();
  +	
  +	inline void
  +	FileUtility::debugNodeData(const XalanDOMString& value)
  +	{
  +#if !defined(NDEBUG) && defined(_MSC_VER)
  +		cout << "Node is: " << c_str(TranscodeToLocalCodePage(value)) << endl;
  +#endif
  +	}
   
  +	inline void
  +	FileUtility::debugNodeData(const XalanDOMString& node, const XalanDOMString& value)
  +	{
  +#if !defined(NDEBUG) && defined(_MSC_VER)
  +		cout << "Node is: " << c_str(TranscodeToLocalCodePage(node)) << "	"
  +			 << "Value is: \"" << c_str(TranscodeToLocalCodePage(value)) << "\"\n";
  +#endif
  +	}
  +
  +	inline void
  +	FileUtility::debugAttributeData(const XalanDOMString& value)
  +	{
  +#if !defined(NDEBUG) && defined(_MSC_VER)
  +		cout << "Attribute is: " << c_str(TranscodeToLocalCodePage(value)) << endl;
  +#endif
  +	}
   };        // end of class FileUtility
   #endif
   
  
  
  

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