math_opt: disable regexp tests when using MSVC. (Fix #4463, Fix #4464)

note: googletest do not support full regexp on windows...
This commit is contained in:
Corentin Le Molgat
2024-12-02 17:13:14 +01:00
committed by Mizux Seiha
parent 742471104a
commit 816f92b514

View File

@@ -417,7 +417,9 @@ TEST_P(IpParameterTest, PresolveOff) {
solve_stats.first_order_iterations,
1);
}
#if !defined(_MSC_VER)
EXPECT_THAT(logs, Not(testing::ContainsRegex(GetParam().presolved_regexp)));
#endif
}
TEST_P(IpParameterTest, PresolveOn) {
@@ -435,7 +437,9 @@ TEST_P(IpParameterTest, PresolveOn) {
EXPECT_EQ(solve_stats.simplex_iterations, 0);
EXPECT_EQ(solve_stats.first_order_iterations, 0);
}
#if !defined(_MSC_VER)
EXPECT_THAT(logs, testing::ContainsRegex(GetParam().presolved_regexp));
#endif
}
// Requires disabling presolve and cuts is supported (or status errors).