Skip to content

Commit d796cb9

Browse files
committed
math_opt: disable on windows tests using testing::ContainsRegex
note: this method is not implemented in googletest for MSVC...
1 parent 0aea586 commit d796cb9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ortools/math_opt/solver_tests/ip_parameter_tests.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,9 @@ TEST_P(IpParameterTest, PresolveOff) {
417417
solve_stats.first_order_iterations,
418418
1);
419419
}
420+
#if !defined(_MSC_VER)
420421
EXPECT_THAT(logs, Not(testing::ContainsRegex(GetParam().presolved_regexp)));
422+
#endif
421423
}
422424

423425
TEST_P(IpParameterTest, PresolveOn) {
@@ -435,7 +437,9 @@ TEST_P(IpParameterTest, PresolveOn) {
435437
EXPECT_EQ(solve_stats.simplex_iterations, 0);
436438
EXPECT_EQ(solve_stats.first_order_iterations, 0);
437439
}
440+
#if !defined(_MSC_VER)
438441
EXPECT_THAT(logs, testing::ContainsRegex(GetParam().presolved_regexp));
442+
#endif
439443
}
440444

441445
// Requires disabling presolve and cuts is supported (or status errors).

0 commit comments

Comments
 (0)