From 0ef105ad2a88c7169588a4df79ebbd9a46c0e52b Mon Sep 17 00:00:00 2001 From: Johnathon Selstad Date: Sun, 19 Mar 2023 13:15:53 -0700 Subject: [PATCH] Fix Windows MSVC Compilation MSVC doesn't seem to like this way of instantiating test suites... --- mjpc/test/agent/norm_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mjpc/test/agent/norm_test.cc b/mjpc/test/agent/norm_test.cc index 280621115..9294e1428 100644 --- a/mjpc/test/agent/norm_test.cc +++ b/mjpc/test/agent/norm_test.cc @@ -94,6 +94,7 @@ TEST_P(NormTest, Hessian) { } } +#ifndef _MSC_VER INSTANTIATE_TEST_SUITE_P( NormTest, NormTest, testing::ValuesIn({ @@ -110,5 +111,6 @@ INSTANTIATE_TEST_SUITE_P( [](const testing::TestParamInfo& info) { return info.param.test_name; }); +#endif } // namespace