Skip to content

Commit b948bbe

Browse files
committed
math_opt: disable broken tests
1 parent 505d7f3 commit b948bbe

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

ortools/math_opt/solver_tests/ip_parameter_tests.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,9 @@ TEST_P(LargeInstanceIpParameterTest, IterationLimit) {
10991099
}
11001100

11011101
TEST_P(LargeInstanceIpParameterTest, NodeLimit) {
1102+
if (GetParam().solver_type == SolverType::kHighs) {
1103+
GTEST_SKIP() << "Ignoring this test as Highs 1.7+ returns unimplemented";
1104+
}
11021105
ASSERT_OK_AND_ASSIGN(std::unique_ptr<Model> model, Load23588());
11031106
SolveParameters params = GetParam().base_parameters;
11041107
params.node_limit = 1;
@@ -1219,6 +1222,9 @@ TEST_P(LargeInstanceIpParameterTest, BestBoundLimit) {
12191222
}
12201223

12211224
TEST_P(LargeInstanceIpParameterTest, SolutionLimit) {
1225+
if (GetParam().solver_type == SolverType::kHighs) {
1226+
GTEST_SKIP() << "Ignoring this test as Highs 1.7+ returns unimplemented";
1227+
}
12221228
ASSERT_OK_AND_ASSIGN(std::unique_ptr<Model> model, Load23588());
12231229
SolveParameters params = GetParam().base_parameters;
12241230
params.solution_limit = 1;

ortools/math_opt/solver_tests/status_tests.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ TEST_P(StatusTest, PrimalAndDualInfeasible) {
9999
<< "Ignoring this test as GLPK gets stuck in presolve for IP's "
100100
"with a primal-dual infeasible LP relaxation.";
101101
}
102+
if (GetParam().solver_type == SolverType::kHighs) {
103+
GTEST_SKIP() << "Ignoring this test as Highs 1.7+ returns error.";
104+
}
102105

103106
Model model;
104107
const Variable x1 =
@@ -373,6 +376,9 @@ TEST_P(StatusTest, IncompleteIpSolve) {
373376
GTEST_SKIP() << "Ignoring this test as it is an IP-only test and requires "
374377
"support for node_limit.";
375378
}
379+
if (GetParam().solver_type == SolverType::kHighs) {
380+
GTEST_SKIP() << "Ignoring this test as Highs 1.7+ returns MODEL_INVALID";
381+
}
376382
ASSERT_OK_AND_ASSIGN(const std::unique_ptr<const Model> model, Load23588());
377383
SolveArguments args = {
378384
.parameters = {.enable_output = true, .node_limit = 1}};

ortools/math_opt/solver_tests/testdata/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
# limitations under the License.
1313

1414
exports_files([
15-
"23588.mps",
16-
"beavma.mps",
15+
"23588.mps",
16+
"beavma.mps",
1717
])

0 commit comments

Comments
 (0)