Fix segfault on windows with MSVC (#14466)

* MSVC compiler cannot handle copying empty AnyMap
This commit is contained in:
Artemy Skrebkov 2022-12-07 22:32:46 +00:00 committed by GitHub
parent 6106ece9dd
commit 5651488e06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 13 additions and 15 deletions

View File

@ -34,8 +34,6 @@ inline const std::vector<ov::AnyMap> generate_ov_configs(const std::string& targ
return resultConfig;
}
const ov::AnyMap ov_config = ov::test::conformance::pluginConfig;
} // namespace conformance
} // namespace test
} // namespace ov

View File

@ -33,6 +33,6 @@ INSTANTIATE_TEST_SUITE_P(ov_compiled_model,
::testing::Combine(
::testing::ValuesIn(ovExecGraphInfoElemTypes),
::testing::ValuesIn(return_all_possible_device_combination()),
::testing::Values(ov_config)),
::testing::Values(pluginConfig)),
OVExecGraphImportExportTest::getTestCaseName);
} // namespace
} // namespace

View File

@ -14,6 +14,6 @@ using namespace ov::test::conformance;
INSTANTIATE_TEST_SUITE_P(ov_compiled_model, OVExecutableNetworkBaseTest,
::testing::Combine(
::testing::ValuesIn(return_all_possible_device_combination()),
::testing::Values(ov_config)),
::testing::Values(pluginConfig)),
OVExecutableNetworkBaseTest::getTestCaseName);
} // namespace

View File

@ -15,7 +15,7 @@ using namespace ov::test::conformance;
INSTANTIATE_TEST_SUITE_P(ov_infer_request, OVInferRequestCallbackTests,
::testing::Combine(
::testing::ValuesIn(return_all_possible_device_combination()),
::testing::Values(ov_config)),
::testing::Values(pluginConfig)),
OVInferRequestCallbackTests::getTestCaseName);
} // namespace

View File

@ -12,6 +12,6 @@ using namespace ov::test::conformance;
INSTANTIATE_TEST_SUITE_P(ov_infer_request, OVInferRequestCancellationTests,
::testing::Combine(
::testing::ValuesIn(return_all_possible_device_combination()),
::testing::Values(ov_config)),
::testing::Values(pluginConfig)),
OVInferRequestCancellationTests::getTestCaseName);
} // namespace

View File

@ -61,7 +61,7 @@ INSTANTIATE_TEST_SUITE_P(ov_infer_request_1, OVInferRequestDynamicTests,
{{1, 4, 20, 20}, {1, 4, 20, 20}},
{{2, 4, 20, 20}, {2, 4, 20, 20}}}),
::testing::ValuesIn(return_all_possible_device_combination()),
::testing::Values(ov_config)),
::testing::Values(pluginConfig)),
OVInferRequestDynamicTests::getTestCaseName);
INSTANTIATE_TEST_SUITE_P(ov_infer_request_2, OVInferRequestDynamicTests,
@ -71,6 +71,6 @@ INSTANTIATE_TEST_SUITE_P(ov_infer_request_2, OVInferRequestDynamicTests,
{{1, 4, 20, 20}, {1, 2, 20, 40}},
{{2, 4, 20, 20}, {2, 2, 20, 40}}}),
::testing::ValuesIn(return_all_possible_device_combination()),
::testing::Values(ov_config)),
::testing::Values(pluginConfig)),
OVInferRequestDynamicTests::getTestCaseName);
} // namespace

View File

@ -13,6 +13,6 @@ using namespace ov::test::conformance;
INSTANTIATE_TEST_SUITE_P(ov_infer_request, OVInferenceChaining,
::testing::Combine(
::testing::ValuesIn(return_all_possible_device_combination()),
::testing::Values(ov_config)),
::testing::Values(pluginConfig)),
OVInferenceChaining::getTestCaseName);
} // namespace

View File

@ -15,7 +15,7 @@ namespace {
INSTANTIATE_TEST_SUITE_P(ov_infer_request, OVInferRequestIOTensorTest,
::testing::Combine(
::testing::ValuesIn(return_all_possible_device_combination()),
::testing::Values(ov_config)),
::testing::Values(pluginConfig)),
OVInferRequestIOTensorTest::getTestCaseName);
std::vector<ov::element::Type> ovIOTensorElemTypes = {
@ -41,6 +41,6 @@ INSTANTIATE_TEST_SUITE_P(ov_infer_request, OVInferRequestIOTensorSetPrecisionTes
::testing::Combine(
::testing::ValuesIn(ovIOTensorElemTypes),
::testing::ValuesIn(return_all_possible_device_combination()),
::testing::Values(ov_config)),
::testing::Values(pluginConfig)),
OVInferRequestIOTensorSetPrecisionTest::getTestCaseName);
} // namespace

View File

@ -16,7 +16,7 @@ namespace {
INSTANTIATE_TEST_SUITE_P(ov_infer_request, OVInferRequestMultithreadingTests,
::testing::Combine(
::testing::ValuesIn(return_all_possible_device_combination()),
::testing::Values(ov_config)),
::testing::Values(pluginConfig)),
OVInferRequestMultithreadingTests::getTestCaseName);
} // namespace

View File

@ -13,7 +13,7 @@ namespace {
INSTANTIATE_TEST_SUITE_P(ov_infer_request, OVInferRequestPerfCountersTest,
::testing::Combine(
::testing::ValuesIn(return_all_possible_device_combination()),
::testing::Values(ov_config)),
::testing::Values(pluginConfig)),
OVInferRequestPerfCountersTest::getTestCaseName);
} // namespace

View File

@ -16,7 +16,7 @@ namespace {
INSTANTIATE_TEST_SUITE_P(ov_infer_request, OVInferRequestWaitTests,
::testing::Combine(
::testing::ValuesIn(return_all_possible_device_combination()),
::testing::Values(ov_config)),
::testing::Values(pluginConfig)),
OVInferRequestWaitTests::getTestCaseName);
} // namespace