Changeset 2204


Ignore:
Timestamp:
Feb 20, 2019 6:30:23 PM (20 months ago)
Author:
stefan
Message:

check whether readmps returns error; add erros to unittest outcome

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Osi/src/OsiCommonTest/OsiNetlibTest.cpp

    r2195 r2204  
    216216    for (i = 0; i < numSolvers; i++) {
    217217      std::string fn = mpsDir + mpsName[m];
    218       vecSiP[i]->readMps(fn.c_str(), "mps");
     218      if (vecSiP[i]->readMps(fn.c_str(), "mps") != 0)
     219        OSIUNITTEST_ADD_OUTCOME(*vecSiP[i], "netlib " + mpsName[m], "reading MPS file failed", OsiUnitTest::TestOutcome::ERROR, false);
    219220      if (minObj[m])
    220221        vecSiP[i]->setObjSense(1.0);
     
    227228        solversReadMpsFile++;
    228229      }
     230      else
     231        OSIUNITTEST_ADD_OUTCOME(*vecSiP[i], "netlib " + mpsName[m], "number of rows and columns wrong", OsiUnitTest::TestOutcome::ERROR, false);
    229232    }
    230233    /*
Note: See TracChangeset for help on using the changeset viewer.