You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2002/08/05 06:52:27 UTC
cvs commit: xml-xalan/c/Tests/Harness FileUtility.cpp FileUtility.hpp
dbertoni 2002/08/04 21:52:27
Modified: c/Tests/Harness FileUtility.cpp FileUtility.hpp
Log:
Enhanced checking code to add option to allow the result string to contain the comparison string.
Revision Changes Path
1.40 +4 -2 xml-xalan/c/Tests/Harness/FileUtility.cpp
Index: FileUtility.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/Tests/Harness/FileUtility.cpp,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- FileUtility.cpp 11 Jul 2002 05:56:09 -0000 1.39
+++ FileUtility.cpp 5 Aug 2002 04:52:27 -0000 1.40
@@ -711,9 +711,11 @@
const char* msg,
XMLFileReporter& logfile,
const XalanDOMString& outputFile,
- const XalanDOMString& goldFile)
+ const XalanDOMString& goldFile,
+ bool containsOnly)
{
- if(actual == expected)
+ if(actual == expected ||
+ (containsOnly == true && indexOf(actual, expected) != XalanDOMString::npos))
{
data.pass += 1;
cout << "Passed: " << data.testOrFile << endl;
1.28 +6 -3 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.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- FileUtility.hpp 9 May 2002 01:28:23 -0000 1.27
+++ FileUtility.hpp 5 Aug 2002 04:52:27 -0000 1.28
@@ -284,7 +284,8 @@
const char* msg,
XMLFileReporter& logfile,
const XalanDOMString& outputFile,
- const XalanDOMString& goldFile);
+ const XalanDOMString& goldFile,
+ bool containsOnly = false);
void
checkAPIResults(
@@ -293,7 +294,8 @@
const char* msg,
XMLFileReporter& logfile,
const XalanDOMString& outputFile,
- const XalanDOMString& goldFile)
+ const XalanDOMString& goldFile,
+ bool containsOnly = false)
{
checkAPIResults(
XalanDOMString(actual),
@@ -301,7 +303,8 @@
msg,
logfile,
outputFile,
- goldFile);
+ goldFile,
+ containsOnly);
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org