COIN-OR::LEMON - Graph Library

Ticket #260: 3cbddc293cf9.patch

File 3cbddc293cf9.patch, 1.2 KB (added by Balazs Dezso, 16 years ago)

Force lp check

  • test/lp_test.cc

    # HG changeset patch
    # User Balazs Dezso <deba@inf.elte.hu>
    # Date 1239304756 -7200
    # Node ID 3cbddc293cf91e7977a608f66aeb64a643062d9c
    # Parent  37216ca5b9c610a335e9dcdb941115003d1f3769
    Force cplex checking (#260)
    
    diff -r 37216ca5b9c6 -r 3cbddc293cf9 test/lp_test.cc
    a b  
    395395    aTest(lp_cplex2);
    396396    cloneTest<CplexLp>();
    397397  } catch (CplexEnv::LicenseError& error) {
    398 #ifdef LEMON_FORCE_CPLEX_CHECK
    399398    check(false, error.what());
    400 #else
    401     std::cerr << error.what() << std::endl;
    402     std::cerr << "Cplex license check failed, lp check skipped" << std::endl;
    403 #endif
    404399  }
    405400#endif
    406401
  • test/mip_test.cc

    diff -r 37216ca5b9c6 -r 3cbddc293cf9 test/mip_test.cc
    a b  
    143143    aTest(mip2);
    144144    cloneTest<CplexMip>();
    145145  } catch (CplexEnv::LicenseError& error) {
    146 #ifdef LEMON_FORCE_CPLEX_CHECK
    147146    check(false, error.what());
    148 #else
    149     std::cerr << error.what() << std::endl;
    150     std::cerr << "Cplex license check failed, lp check skipped" << std::endl;
    151 #endif
    152147  }
    153148#endif
    154149