# 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
|
|
395 | 395 | aTest(lp_cplex2); |
396 | 396 | cloneTest<CplexLp>(); |
397 | 397 | } catch (CplexEnv::LicenseError& error) { |
398 | | #ifdef LEMON_FORCE_CPLEX_CHECK |
399 | 398 | 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 |
404 | 399 | } |
405 | 400 | #endif |
406 | 401 | |
diff -r 37216ca5b9c6 -r 3cbddc293cf9 test/mip_test.cc
a
|
b
|
|
143 | 143 | aTest(mip2); |
144 | 144 | cloneTest<CplexMip>(); |
145 | 145 | } catch (CplexEnv::LicenseError& error) { |
146 | | #ifdef LEMON_FORCE_CPLEX_CHECK |
147 | 146 | 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 |
152 | 147 | } |
153 | 148 | #endif |
154 | 149 | |