From 93748a946684defd1494d5585dbc912e451e83f8 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Thu, 3 Dec 2020 14:31:28 -0500 Subject: [PATCH] Googletest export Disable a gmock matcher test under MSVC 2015 (version 14) and earlier. It interacts badly with Windows structured exceptions in a way we do not have the resources to investigate. This test passes under MSVC 2017 and SEH. PiperOrigin-RevId: 345496734 --- googlemock/test/gmock-matchers_test.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/googlemock/test/gmock-matchers_test.cc b/googlemock/test/gmock-matchers_test.cc index b7e253d7..e6923195 100644 --- a/googlemock/test/gmock-matchers_test.cc +++ b/googlemock/test/gmock-matchers_test.cc @@ -1074,7 +1074,12 @@ struct MoveHelper { MOCK_METHOD1(Call, void(MoveOnly)); }; +// Disable this test in VS 2015 (version 14), where it fails when SEH is enabled +#if defined(_MSC_VER) && (_MSC_VER < 1910) +TEST(ComparisonBaseTest, DISABLED_WorksWithMoveOnly) { +#else TEST(ComparisonBaseTest, WorksWithMoveOnly) { +#endif MoveOnly m{0}; MoveHelper helper;