Changeset 5136


Ignore:
Timestamp:
Jun 20, 2016 8:56:07 PM (6 years ago)
Author:
Gassmann
Message:

updated non-debug version of unit test

Location:
trunk/OS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/OS/src/OSCommonInterfaces/OSMatrix.cpp

    r5135 r5136  
    11761176        // Here we need to create a new expansion and add it to the collection
    11771177
    1178         tempMtx = new GeneralSparseMatrix();
     1178        tempMtx = new GeneralSparseMatrix(); // leaks memory
    11791179        tempMtx->numberOfRows    = numberOfRows;
    11801180        tempMtx->numberOfColumns = numberOfColumns;
     
    21362136
    21372137                tmpBlocks->blockNumber   = ((MatrixBlocks*)m_mChildren[0])->inumberOfChildren;
    2138                 tmpBlocks->blocks        = new GeneralSparseMatrix*[tmpBlocks->blockNumber];
    2139                 tmpBlocks->blockRows     = new int[tmpBlocks->blockNumber];
    2140                 tmpBlocks->blockColumns  = new int[tmpBlocks->blockNumber];
     2138                tmpBlocks->blocks        = new GeneralSparseMatrix*[tmpBlocks->blockNumber]; //leaks memory
     2139                tmpBlocks->blockRows     = new int[tmpBlocks->blockNumber]; //apparently clean!
     2140                tmpBlocks->blockColumns  = new int[tmpBlocks->blockNumber]; //leaks memory
    21412141                tmpBlockIdx              = new int[tmpBlocks->blockNumber];
    21422142
  • trunk/OS/test/unitTest.cpp

    r5135 r5136  
    913913        osinstance2 = NULL;
    914914
     915#ifndef NDEBUG
    915916        osoutput->SetPrintLevel("stdout", (ENUM_OUTPUT_LEVEL)(100*ENUM_OUTPUT_AREA_OSMatrix
    916917                                                                + ENUM_OUTPUT_LEVEL_detailed_trace));
    917 
     918#endif
    918919        unitTestResult << "TEST " << nOfTest << ": Passed OSInstance get() and set() methods" << std::endl;
    919920        cout << endl << "TEST " << nOfTest << ": Completed successfully" << endl << endl;
Note: See TracChangeset for help on using the changeset viewer.