pauldick    01/12/13 12:25:23

  Modified:    c/Tests/Memory Stressmem.cpp
  Log:
  Updated call to getParams,  added test for -sub dir.
  
  Revision  Changes    Path
  1.18      +10 -2     xml-xalan/c/Tests/Memory/Stressmem.cpp
  
  Index: Stressmem.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/Tests/Memory/Stressmem.cpp,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- Stressmem.cpp     2001/12/12 21:26:55     1.17
  +++ Stressmem.cpp     2001/12/13 20:25:23     1.18
  @@ -136,7 +136,10 @@
        // Set the program help string,  then get the command line parameters.
        //
        setHelp();
  -     if (h.getParams(argc, argv, "MEM-RESULTS") == true)
  +     bool setGold = false;
  +     bool foundDir = false;
  +
  +     if (h.getParams(argc, argv, "MEM-RESULTS", setGold) == true)
        {
                // Get the list of Directories that are below perf
                const FileNameVectorType        dirs = 
h.getDirectoryNames(h.args.base);
  @@ -174,6 +177,7 @@
                                        h.checkAndCreateDir(theOutputDir);
   
                                        const FileNameVectorType        files = 
h.getTestFileNames(h.args.base, dirs[j],true);
  +                                     foundDir = true;
   
                                        for(FileNameVectorType::size_type i = 
0; i < files.size(); ++i)
                                        {
  @@ -212,8 +216,12 @@
                                }
                        }
   
  +                     // Check to see if -sub cmd-line directory was 
processed correctly.
  +                     if (!foundDir)
  +                     {
  +                             cout << "Specified test directory: \"" << 
c_str(TranscodeToLocalCodePage(h.args.sub)) << "\" not found" << endl;
  +                     }
                        XalanTransformer::terminate();
  -
                        logFile.logTestFileClose("Memory Testing: ", "Done");
                        logFile.close();
   
  
  
  

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

Reply via email to