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/05/22 18:02:16 UTC
cvs commit: xml-xalan/c/Tests/PerfT perft.cpp
dbertoni 02/05/22 09:02:16
Modified: c/Tests/PerfT perft.cpp
Log:
Make sure variable is initialized before use.
Revision Changes Path
1.15 +2 -2 xml-xalan/c/Tests/PerfT/perft.cpp
Index: perft.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/Tests/PerfT/perft.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- perft.cpp 28 Feb 2002 06:08:57 -0000 1.14
+++ perft.cpp 22 May 2002 16:02:16 -0000 1.15
@@ -170,7 +170,6 @@
bool setGold = false;
{
const XalanDOMString processorType(XALAN_STATIC_UCODE_STRING("XalanC"));
- long iterCount; // Default number of iterations
bool skip = true; // Default will skip long tests
if (h.getParams(argc, argv, "PERFT-RESULTS", setGold) == true)
@@ -219,6 +218,8 @@
const FileNameVectorType files = h.getTestFileNames(h.args.base, dirs[j], false);
logFile.logTestCaseInit(XalanDOMString("Performance Directory: ") + dirs[j] );
+ const long iterCount = h.args.iters;
+
for(FileNameVectorType::size_type i = 0; i < files.size(); i++)
{
// Define variables used for timing and reporting ...
@@ -324,7 +325,6 @@
//
// FIRST: Parsed XSL Stylesheet and Parsed XML Source.
//
- iterCount = h.args.iters;
accmTime = 0;
for(int j = 0; j < iterCount; ++j)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org