Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

Bump gtest submodule to v1.17.0-based fork (#35606)

Egor Duplenskiief1db002a3ed
diff --git a/src/core/tests/bfloat16.cpp b/src/core/tests/bfloat16.cpp
index 6389fa66a62..5b307ed7a76 100644
--- a/src/core/tests/bfloat16.cpp
+++ b/src/core/tests/bfloat16.cpp
@@ -7,7 +7,9 @@
#include <gtest/gtest.h>
#include <climits>
+#include <iomanip>
#include <random>
+#include <sstream>
#include "common_test_utils/float_util.hpp"
#include "openvino/runtime/aligned_buffer.hpp"
diff --git a/src/core/tests/control_dependencies.cpp b/src/core/tests/control_dependencies.cpp
index eef812564ca..fa4ec2ee666 100644
--- a/src/core/tests/control_dependencies.cpp
+++ b/src/core/tests/control_dependencies.cpp
@@ -88,7 +88,7 @@ TEST(control_dependencies, cdep_ops) {
auto cdop = make_shared<ControlDependencyOp>(OutputVector{A}, std::set<std::shared_ptr<Node>>{absn});
auto f = make_shared<Model>(cdop, ParameterVector{A, B});
- test_ordered_ops(f, NodeVector{absn});
+ EXPECT_TRUE(test_ordered_ops(f, NodeVector{absn}));
}
TEST(control_dependencies, two_cdep_ops) {
@@ -100,7 +100,7 @@ TEST(control_dependencies, two_cdep_ops) {
auto cdop = make_shared<ControlDependencyOp>(OutputVector{A}, std::set<std::shared_ptr<Node>>{absn, absn_c});
auto f = make_shared<Model>(cdop, ParameterVector{A, B, C});
- test_ordered_ops(f, NodeVector{absn, absn_c});
+ EXPECT_TRUE(test_ordered_ops(f, NodeVector{absn, absn_c}));
}
TEST(control_dependencies, two_cdep_ops_op_on_top) {
@@ -112,7 +112,7 @@ TEST(control_dependencies, two_cdep_ops_op_on_top) {
auto absn_cdop = make_shared<ov::op::v0::Abs>(cdop);
auto f = make_shared<Model>(absn_cdop, ParameterVector{A, B});
- test_ordered_ops(f, NodeVector{absn, absn_b});
+ EXPECT_TRUE(test_ordered_ops(f, NodeVector{absn, absn_b}));
}
TEST(control_dependencies, clone_function_cdop) {
@@ -121,7 +121,7 @@ TEST(control_dependencies, clone_function_cdop) {
auto cdop = make_shared<ControlDependencyOp>(OutputVector{A}, std::set<std::shared_ptr<Node>>{absn});
auto f = make_shared<Model>(cdop, ParameterVector{A});
- test_ordered_ops(f, NodeVector{absn});
+ EXPECT_TRUE(test_ordered_ops(f, NodeVector{absn}));
auto clone = f->clone();
auto matcher = std::make_shared<pass::pattern::Matcher>(cdop);
auto cdop_clone = clone->get_results().at(0)->input_value(0).get_node_shared_ptr();
diff --git a/src/inference/tests/functional/ov_core_test.cpp b/src/inference/tests/functional/ov_core_test.cpp
index 18353eed869..d8e6c4b6afa 100644
--- a/src/inference/tests/functional/ov_core_test.cpp
+++ b/src/inference/tests/functional/ov_core_test.cpp
@@ -322,4 +322,13 @@ TEST_P(UnicodePathTest, read_compile_model) {
std::filesystem::remove_all(prefix_dir);
}
+INSTANTIATE_TEST_SUITE_P(string_paths, UnicodePathTest, testing::Values("test_folder"));
+INSTANTIATE_TEST_SUITE_P(u16_paths, UnicodePathTest, testing::Values(u"test_folder"));
+INSTANTIATE_TEST_SUITE_P(u32_paths, UnicodePathTest, testing::Values(U"test_folder"));
+INSTANTIATE_TEST_SUITE_P(wstring_paths, UnicodePathTest, testing::Values(L"test_folder"));
+
+#ifdef OPENVINO_ENABLE_UNICODE_PATH_SUPPORT
+INSTANTIATE_TEST_SUITE_P(unicode_paths, UnicodePathTest, unicode_paths);
+#endif
+
} // namespace ov::test
diff --git a/src/plugins/auto/tests/functional/shared_tests_instances/behavior/ov_executable_network/exec_network_base.cpp b/src/plugins/auto/tests/functional/shared_tests_instances/behavior/ov_executable_network/exec_network_base.cpp
index 67518b8b711..82317659eb2 100644
--- a/src/plugins/auto/tests/functional/shared_tests_instances/behavior/ov_executable_network/exec_network_base.cpp
+++ b/src/plugins/auto/tests/functional/shared_tests_instances/behavior/ov_executable_network/exec_network_base.cpp
@@ -5,6 +5,9 @@
#include "behavior/compiled_model/compiled_model_base.hpp"
using namespace ov::test::behavior;
+
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CompiledModelSetType);
+
namespace {
const std::vector<ov::AnyMap> multiConfigs = {{ov::device::priorities(ov::test::utils::DEVICE_TEMPLATE)}};
diff --git a/src/plugins/auto/tests/functional/shared_tests_instances/behavior/ov_plugin/core_integration.cpp b/src/plugins/auto/tests/functional/shared_tests_instances/behavior/ov_plugin/core_integration.cpp
index 12bfd8376ff..5db3a29fb46 100644
--- a/src/plugins/auto/tests/functional/shared_tests_instances/behavior/ov_plugin/core_integration.cpp
+++ b/src/plugins/auto/tests/functional/shared_tests_instances/behavior/ov_plugin/core_integration.cpp
@@ -12,6 +12,12 @@
using namespace ov::test::behavior;
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassModelOptionalTestP);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassModelTestP);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassQueryModelTest);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassSeveralDevicesTestCompileModel);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassSeveralDevicesTestQueryModel);
+
// defined in plugin_name.cpp
extern const char* cpu_plugin_file_name;
diff --git a/src/plugins/auto/tests/unit/ctput_test.cpp b/src/plugins/auto/tests/unit/ctput_test.cpp
index 68d4788596a..544ad7b979b 100644
--- a/src/plugins/auto/tests/unit/ctput_test.cpp
+++ b/src/plugins/auto/tests/unit/ctput_test.cpp
@@ -176,11 +176,14 @@ TEST_P(AutoCTPUTCallMulti, CTPUTDeviceLoadFailedNoExceptionThrowTest) {
std::shared_ptr<ov::ICompiledModel> exeNetwork;
config.insert({ov::hint::performance_mode(ov::hint::PerformanceMode::CUMULATIVE_THROUGHPUT)});
config.insert(ov::device::priorities(targetDev));
- ON_CALL(*core,
- compile_model(::testing::Matcher<const std::shared_ptr<const ov::Model>&>(_),
- ::testing::Matcher<const std::string&>(StrEq(loadFailedDevice)),
- ::testing::Matcher<const ov::AnyMap&>(_)))
- .WillByDefault(ov::Throw("GeneralError"));
+ // gmock 1.11+ reports calls not matching any EXPECT_CALL as "unexpected"
+ // once any expectation exists for this method, so promote the failing
+ // device setup from ON_CALL to EXPECT_CALL.
+ EXPECT_CALL(*core,
+ compile_model(::testing::Matcher<const std::shared_ptr<const ov::Model>&>(_),
+ ::testing::Matcher<const std::string&>(StrEq(loadFailedDevice)),
+ ::testing::Matcher<const ov::AnyMap&>(_)))
+ .WillRepeatedly(ov::Throw("GeneralError"));
if (loadFailedDevice != ov::test::utils::DEVICE_CPU) {
EXPECT_CALL(*core,
compile_model(::testing::Matcher<const std::shared_ptr<const ov::Model>&>(_),
diff --git a/src/plugins/auto/tests/unit/parse_meta_device_test.cpp b/src/plugins/auto/tests/unit/parse_meta_device_test.cpp
index a9abc189654..eba87e28a43 100644
--- a/src/plugins/auto/tests/unit/parse_meta_device_test.cpp
+++ b/src/plugins/auto/tests/unit/parse_meta_device_test.cpp
@@ -147,7 +147,7 @@ const std::vector<ConfigParams> testConfigs = {
{"GPU.0", {}, -1, "", std::string(igpuFullDeviceName) + "_0", 1},
{"GPU.1", {}, -1, "", std::string(dgpuFullDeviceName) + "_1", 1}},
false,
- 3},
+ 4},
ConfigParams{"CPU(1),GPU(2),OTHER(4)",
{{"CPU", {}, 1, "", "CPU_", 0},
{"GPU.0", {}, 2, "", std::string(igpuFullDeviceName) + "_0", 1},
@@ -158,7 +158,7 @@ const std::vector<ConfigParams> testConfigs = {
ConfigParams{"CPU(-1),GPU,OTHER", {}, true, 0},
ConfigParams{"CPU(NA),GPU,OTHER", {}, true, 0},
- ConfigParams{"INVALID_DEVICE", {}, false, 0},
+ ConfigParams{"INVALID_DEVICE", {}, false, 1},
// GPU will be expanded to GPU.0 and GPU.1 with same device priority(0).
ConfigParams{"GPU",
{
diff --git a/src/plugins/hetero/tests/functional/shared_tests_instances/behavior/ov_compiled_model/compiled_model_base.cpp b/src/plugins/hetero/tests/functional/shared_tests_instances/behavior/ov_compiled_model/compiled_model_base.cpp
index 265fe1b5549..6b38ea15b61 100644
--- a/src/plugins/hetero/tests/functional/shared_tests_instances/behavior/ov_compiled_model/compiled_model_base.cpp
+++ b/src/plugins/hetero/tests/functional/shared_tests_instances/behavior/ov_compiled_model/compiled_model_base.cpp
@@ -5,6 +5,9 @@
#include "behavior/compiled_model/compiled_model_base.hpp"
using namespace ov::test::behavior;
+
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CompiledModelSetType);
+
namespace {
const std::vector<ov::AnyMap> configs = {
diff --git a/src/plugins/hetero/tests/functional/shared_tests_instances/behavior/ov_compiled_model/properties.cpp b/src/plugins/hetero/tests/functional/shared_tests_instances/behavior/ov_compiled_model/properties.cpp
index e8ba0b96d2c..bca2dc0a39c 100644
--- a/src/plugins/hetero/tests/functional/shared_tests_instances/behavior/ov_compiled_model/properties.cpp
+++ b/src/plugins/hetero/tests/functional/shared_tests_instances/behavior/ov_compiled_model/properties.cpp
@@ -77,6 +77,9 @@ INSTANTIATE_TEST_SUITE_P(smoke_OVClassCompiledModelGetIncorrectPropertyTest,
OVClassCompiledModelGetIncorrectPropertyTest,
::testing::Values("HETERO:TEMPLATE"));
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassHeteroCompiledModelGetMetricTest_TARGET_FALLBACK);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassHeteroCompiledModelGetMetricTest_EXEC_DEVICES);
+
INSTANTIATE_TEST_SUITE_P(smoke_OVClassHeteroCompiledModelGetMetricTest,
OVClassHeteroCompiledModelGetMetricTest_TARGET_FALLBACK,
::testing::Values(ov::test::utils::DEVICE_TEMPLATE));
diff --git a/src/plugins/hetero/tests/functional/shared_tests_instances/behavior/ov_plugin/core_threading_tests.cpp b/src/plugins/hetero/tests/functional/shared_tests_instances/behavior/ov_plugin/core_threading_tests.cpp
index 4eea2951b48..bba2c78cbcf 100644
--- a/src/plugins/hetero/tests/functional/shared_tests_instances/behavior/ov_plugin/core_threading_tests.cpp
+++ b/src/plugins/hetero/tests/functional/shared_tests_instances/behavior/ov_plugin/core_threading_tests.cpp
@@ -4,6 +4,8 @@
#include "behavior/ov_plugin/core_threading.hpp"
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CoreThreadingTestsWithCacheEnabled);
+
namespace {
const Params params[] = {
std::tuple<Device, Config>{ov::test::utils::DEVICE_HETERO,
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/matmul.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/matmul.cpp
index b42663d58f0..dbfd44bcea6 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/matmul.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/classes/matmul.cpp
@@ -195,6 +195,11 @@ TEST_P(MatMulLayerCPUTest, CompareWithRefs) {
CheckPluginRelatedResults(compiledModel, cpuNodeType);
}
+// On some architectures (e.g. RISC-V) filterCPUInfo filters out all backends
+// defined in filterSpecificParams(), producing empty INSTANTIATE_TEST_SUITE_P.
+// gtest >= 1.11 flags this as a failure unless explicitly allowed.
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(MatMulLayerCPUTest);
+
namespace MatMul {
const ov::AnyMap& emptyAdditionalConfig() {
static const ov::AnyMap emptyAdditionalConfig;
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/concatenation_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/concatenation_gpu_test.cpp
index 1a9633350a3..7c35ad8941a 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/concatenation_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/concatenation_gpu_test.cpp
@@ -1593,6 +1593,7 @@ INSTANTIATE_TEST_SUITE_P(export_import,
TEST_P(concat_implicit_gpu_4d_i8, input_order_opt_b_fs_yx_fsv32) {
ASSERT_NO_FATAL_FAILURE(test());
}
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(concat_implicit_gpu_4d_i8);
#ifdef ENABLE_ONEDNN_FOR_GPU
TEST(concat_gpu_onednn, basic_input_types) {
diff --git a/src/plugins/intel_npu/tests/functional/main.cpp b/src/plugins/intel_npu/tests/functional/main.cpp
index 5ae7b65b0ef..8c8b85b76e3 100644
--- a/src/plugins/intel_npu/tests/functional/main.cpp
+++ b/src/plugins/intel_npu/tests/functional/main.cpp
@@ -113,7 +113,7 @@ int main(int argc, char** argv, char** envp) {
<< "'; Full device name: '" << full << "'" << std::endl;
}
- std::string dTest = ::testing::internal::GTEST_FLAG(internal_run_death_test);
+ std::string dTest = ::testing::GTEST_FLAG(internal_run_death_test);
if (dTest.empty()) {
std::cout << oss.str() << std::endl;
} else {
diff --git a/src/plugins/intel_npu/tests/unit/main.cpp b/src/plugins/intel_npu/tests/unit/main.cpp
index 46eac4072ea..f43877f9d4f 100644
--- a/src/plugins/intel_npu/tests/unit/main.cpp
+++ b/src/plugins/intel_npu/tests/unit/main.cpp
@@ -62,7 +62,7 @@ int main(int argc, char** argv, char** envp) {
::testing::InitGoogleTest(&argc, argv);
::testing::AddGlobalTestEnvironment(new testing::Environment());
- std::string dTest = ::testing::internal::GTEST_FLAG(internal_run_death_test);
+ std::string dTest = ::testing::GTEST_FLAG(internal_run_death_test);
if (!dTest.empty()) {
std::cout << "gtest death test process is running" << std::endl;
}
diff --git a/src/plugins/template/tests/functional/shared_tests_instances/behavior/ov_executable_network/exec_network_base.cpp b/src/plugins/template/tests/functional/shared_tests_instances/behavior/ov_executable_network/exec_network_base.cpp
index 9b86b41d766..42c76ea713a 100644
--- a/src/plugins/template/tests/functional/shared_tests_instances/behavior/ov_executable_network/exec_network_base.cpp
+++ b/src/plugins/template/tests/functional/shared_tests_instances/behavior/ov_executable_network/exec_network_base.cpp
@@ -25,4 +25,6 @@ INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests,
::testing::ValuesIn(configs)),
OVCompiledModelBaseTestOptional::getTestCaseName);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CompiledModelSetType);
+
} // namespace ov::test::behavior
diff --git a/src/plugins/template/tests/functional/shared_tests_instances/behavior/ov_plugin/core_integration.cpp b/src/plugins/template/tests/functional/shared_tests_instances/behavior/ov_plugin/core_integration.cpp
index d200f5bca3a..0cc503a3fc1 100644
--- a/src/plugins/template/tests/functional/shared_tests_instances/behavior/ov_plugin/core_integration.cpp
+++ b/src/plugins/template/tests/functional/shared_tests_instances/behavior/ov_plugin/core_integration.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2018-2026 Intel Corporation
-// SPDX-License-Identifcorer: Apache-2.0
+// SPDX-License-Identifier: Apache-2.0
//
#include <string>
@@ -55,3 +55,9 @@ INSTANTIATE_TEST_SUITE_P(smoke_OVClassQueryModelTest,
::testing::Values(ov::test::utils::DEVICE_TEMPLATE));
} // namespace
+
+namespace ov::test::behavior {
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassCompileModelWithCondidateDeviceListContainedMetaPluginTest);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassSeveralDevicesTestCompileModel);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassSeveralDevicesTestQueryModel);
+} // namespace ov::test::behavior
diff --git a/src/plugins/template/tests/functional/shared_tests_instances/single_layer_tests/softmax.cpp b/src/plugins/template/tests/functional/shared_tests_instances/single_layer_tests/softmax.cpp
index 851f5342612..dab68e2ab91 100644
--- a/src/plugins/template/tests/functional/shared_tests_instances/single_layer_tests/softmax.cpp
+++ b/src/plugins/template/tests/functional/shared_tests_instances/single_layer_tests/softmax.cpp
@@ -147,3 +147,9 @@ INSTANTIATE_TEST_SUITE_P(smoke_SoftMax5D_dynamic,
SoftMax8LayerTest::getTestCaseName);
} // namespace
+
+// TEST_P(SoftMaxLayerTest, ...) is defined in the shared header but the template
+// plugin only instantiates SoftMax8LayerTest.
+namespace ov::test::subgraph {
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(SoftMaxLayerTest);
+} // namespace ov::test::subgraph
diff --git a/src/plugins/template/tests/functional/subgraph_reference/stateful_model.cpp b/src/plugins/template/tests/functional/subgraph_reference/stateful_model.cpp
index fe84855260f..317976c5b31 100644
--- a/src/plugins/template/tests/functional/subgraph_reference/stateful_model.cpp
+++ b/src/plugins/template/tests/functional/subgraph_reference/stateful_model.cpp
@@ -11,3 +11,13 @@ namespace {
INSTANTIATE_TEST_SUITE_P(smoke, StatefulModelStateInLoopBody, ::testing::Values(ov::test::utils::DEVICE_TEMPLATE));
} // namespace
+
+// Other stateful model suites are defined via TEST_P in the shared header but
+// not instantiated by the template plugin.
+namespace ov::test {
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(StaticShapeStatefulModel);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(StaticShapeTwoStatesModel);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(DynamicShapeStatefulModelDefault);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(DynamicShapeStatefulModelParam);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(DynamicShapeStatefulModelStateAsInp);
+} // namespace ov::test
diff --git a/src/tests/functional/base_func_tests/src/behavior/compiled_model/import_export.cpp b/src/tests/functional/base_func_tests/src/behavior/compiled_model/import_export.cpp
index d78ad17defd..55e5ffacc01 100644
--- a/src/tests/functional/base_func_tests/src/behavior/compiled_model/import_export.cpp
+++ b/src/tests/functional/base_func_tests/src/behavior/compiled_model/import_export.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2018-2026 Intel Corporation
-// SPDX-License-Identifcorer: Apache-2.0
+// SPDX-License-Identifier: Apache-2.0
//
#include <gmock/gmock-matchers.h>
@@ -785,6 +785,10 @@ TEST_P(OVExecGraphSerializationTest, ExecutionGraph) {
ASSERT_TRUE(status) << message;
}
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassCompiledModelImportExportTestP);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVCompiledModelGraphUniqueNodeNamesTest);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVExecGraphSerializationTest);
+
} // namespace behavior
} // namespace test
} // namespace ov
diff --git a/src/tests/functional/base_func_tests/src/behavior/compiled_model/properties.cpp b/src/tests/functional/base_func_tests/src/behavior/compiled_model/properties.cpp
index fd2585a0bff..2e2d7918348 100644
--- a/src/tests/functional/base_func_tests/src/behavior/compiled_model/properties.cpp
+++ b/src/tests/functional/base_func_tests/src/behavior/compiled_model/properties.cpp
@@ -532,6 +532,20 @@ TEST_P(OVClassCompiledModelGetConfigTest, CanCompileModelWithCustomLocale) {
setlocale(LC_ALL, prev.c_str());
}
+// Shared library definitions - not every plugin instantiates all of them.
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassCompiledModelGetPropertyTest_DEVICE_PRIORITY);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassCompiledModelGetPropertyTest_MODEL_PRIORITY);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassCompiledModelSetCorrectConfigTest);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassCompileModelWithCorrectPropertiesTest);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVCompileModelGetExecutionDeviceTests);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVCompiledModelPropertiesDefaultSupportedTests);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassCompiledModelEmptyPropertiesTests);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassCompiledModelGetPropertyTest_EXEC_DEVICES);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassCompiledModelGetConfigTest);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassCompiledModelSetIncorrectConfigTest);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassCompiledModelPropertiesDefaultTests);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVCompiledModelIncorrectDevice);
+
} // namespace behavior
} // namespace test
} // namespace ov
diff --git a/src/tests/functional/base_func_tests/src/behavior/compiled_model/properties_hetero.cpp b/src/tests/functional/base_func_tests/src/behavior/compiled_model/properties_hetero.cpp
index 49640b4f6d4..7e6fdbbb51d 100644
--- a/src/tests/functional/base_func_tests/src/behavior/compiled_model/properties_hetero.cpp
+++ b/src/tests/functional/base_func_tests/src/behavior/compiled_model/properties_hetero.cpp
@@ -88,6 +88,10 @@ TEST_P(OVClassHeteroCompiledModelGetMetricTest_EXEC_DEVICES, GetMetricNoThrow) {
ASSERT_EQ(expectedTargets, exeTargets);
}
+
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassHeteroCompiledModelGetMetricTest_EXEC_DEVICES);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassHeteroCompiledModelGetMetricTest_TARGET_FALLBACK);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassHeteroCompiledModelGetMetricTest_SUPPORTED_CONFIG_KEYS);
} // namespace behavior
} // namespace test
} // namespace ov
diff --git a/src/tests/functional/base_func_tests/src/behavior/ov_infer_request/infer_request_dynamic.cpp b/src/tests/functional/base_func_tests/src/behavior/ov_infer_request/infer_request_dynamic.cpp
index d2a46b220ab..d2d2663185a 100644
--- a/src/tests/functional/base_func_tests/src/behavior/ov_infer_request/infer_request_dynamic.cpp
+++ b/src/tests/functional/base_func_tests/src/behavior/ov_infer_request/infer_request_dynamic.cpp
@@ -587,6 +587,9 @@ TEST_P(OVNotSupportRequestDynamicTests, InferDynamicNotSupported) {
ov::CompiledModel execNet;
ASSERT_THROW((execNet = ie->compile_model(function, target_device, configuration)), ov::Exception);
}
+
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVNotSupportRequestDynamicTests);
+
} // namespace behavior
} // namespace test
} // namespace ov
diff --git a/src/tests/functional/base_func_tests/src/behavior/ov_infer_request/io_tensor.cpp b/src/tests/functional/base_func_tests/src/behavior/ov_infer_request/io_tensor.cpp
index b9d5556f639..936e530a02d 100644
--- a/src/tests/functional/base_func_tests/src/behavior/ov_infer_request/io_tensor.cpp
+++ b/src/tests/functional/base_func_tests/src/behavior/ov_infer_request/io_tensor.cpp
@@ -528,6 +528,9 @@ TEST_P(OVInferRequestCheckTensorPrecision, getOutputsFromSplitFunctionWithSevera
EXPECT_TRUE(compareTensors(tensor1, tensor2));
}
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVInferRequestIOTensorSetPrecisionTest);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVInferRequestIOTensorTest);
+
} // namespace behavior
} // namespace test
} // namespace ov
diff --git a/src/tests/functional/base_func_tests/src/behavior/ov_infer_request/perf_counters.cpp b/src/tests/functional/base_func_tests/src/behavior/ov_infer_request/perf_counters.cpp
index aa1ed6fabe2..f5c54f2bd1b 100644
--- a/src/tests/functional/base_func_tests/src/behavior/ov_infer_request/perf_counters.cpp
+++ b/src/tests/functional/base_func_tests/src/behavior/ov_infer_request/perf_counters.cpp
@@ -54,6 +54,7 @@ TEST_P(OVInferRequestPerfCountersTest, NotEmptyAfterSyncInfer) {
TEST_P(OVInferRequestPerfCountersExceptionTest, perfCountWereNotEnabledExceptionTest) {
EXPECT_ANY_THROW(req.get_profiling_info());
}
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVInferRequestPerfCountersExceptionTest);
TEST_P(OVInferRequestPerfCountersTest, CheckOperationInProfilingInfo) {
req = execNet.create_infer_request();
diff --git a/src/tests/functional/base_func_tests/src/behavior/ov_plugin/caching_tests.cpp b/src/tests/functional/base_func_tests/src/behavior/ov_plugin/caching_tests.cpp
index 43677e7f11a..0a1a0075b8f 100644
--- a/src/tests/functional/base_func_tests/src/behavior/ov_plugin/caching_tests.cpp
+++ b/src/tests/functional/base_func_tests/src/behavior/ov_plugin/caching_tests.cpp
@@ -994,6 +994,15 @@ void CompileModelWithCacheEncryptionTest::run() {
TEST_P(CompileModelWithCacheEncryptionTest, CanImportModelWithoutException) {
run();
}
+
+// These parameterized test suites are defined in this shared library but not
+// every plugin instantiates all of them.
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CompiledKernelsCacheTest);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CompileModelCacheRuntimePropertiesTestBase);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CompileModelLoadFromFileTestBase);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CompileModelLoadFromCacheTest);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CompileModelLoadFromMemoryTestBase);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CompileModelWithCacheEncryptionTest);
} // namespace behavior
} // namespace test
} // namespace ov
diff --git a/src/tests/functional/base_func_tests/src/behavior/ov_plugin/life_time.cpp b/src/tests/functional/base_func_tests/src/behavior/ov_plugin/life_time.cpp
index 69614090e2c..81c3499f13f 100644
--- a/src/tests/functional/base_func_tests/src/behavior/ov_plugin/life_time.cpp
+++ b/src/tests/functional/base_func_tests/src/behavior/ov_plugin/life_time.cpp
@@ -170,6 +170,10 @@ TEST_P(OVHoldersTestOnImportedNetwork, CreateRequestWithCoreRemoved) {
core = ov::Core{};
auto request = compiled_model.create_infer_request();
}
+
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVHoldersTestOnImportedNetwork);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVHoldersTestWithConfig);
+
} // namespace behavior
} // namespace test
} // namespace ov
diff --git a/src/tests/functional/base_func_tests/src/behavior/ov_plugin/properties_tests.cpp b/src/tests/functional/base_func_tests/src/behavior/ov_plugin/properties_tests.cpp
index 45da5befad6..75732a77bbe 100644
--- a/src/tests/functional/base_func_tests/src/behavior/ov_plugin/properties_tests.cpp
+++ b/src/tests/functional/base_func_tests/src/behavior/ov_plugin/properties_tests.cpp
@@ -840,6 +840,26 @@ TEST_P(OVClassSeveralDevicesTestDefaultCore, DefaultCoreSeveralDevicesNoThrow) {
}
}
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVCheckChangePropComplieModleGetPropTests_DEVICE_ID);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVCheckChangePropComplieModleGetPropTests_InferencePrecision);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVCheckMetricsPropsTests_ModelDependceProps);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVCheckSetIncorrectRWMetricsPropsTests);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVCheckSetSupportedRWMetricsPropsTests);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassCompileModelAndCheckSecondaryPropertiesTest);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassSetDefaultDeviceIDPropTest);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassSetDevicePriorityConfigPropsTest);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassSeveralDevicesTestDefaultCore);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVGetAvailableDevicesPropsTest);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVGetMetricPropsOptionalTest);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVSetPropComplieModleGetPropTests);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVSpecificDeviceGetConfigTest);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVSpecificDeviceSetConfigTest);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVSpecificDeviceTestSetConfig);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVBasicPropertiesTestsP);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVSetUnsupportPropCompileModelWithoutConfigTests);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVPropertiesDefaultSupportedTests);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVPropertiesDefaultTests);
+
} // namespace behavior
} // namespace test
} // namespace ov
diff --git a/src/tests/functional/plugin/conformance/test_runner/api_conformance_runner/src/ov_compiled_model/exec_network_base.cpp b/src/tests/functional/plugin/conformance/test_runner/api_conformance_runner/src/ov_compiled_model/exec_network_base.cpp
index 050e661fac2..2e0d8c309e3 100644
--- a/src/tests/functional/plugin/conformance/test_runner/api_conformance_runner/src/ov_compiled_model/exec_network_base.cpp
+++ b/src/tests/functional/plugin/conformance/test_runner/api_conformance_runner/src/ov_compiled_model/exec_network_base.cpp
@@ -6,6 +6,10 @@
#include "ov_api_conformance_helpers.hpp"
+namespace ov::test::behavior {
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CompiledModelSetType);
+} // namespace ov::test::behavior
+
namespace {
using namespace ov::test::behavior;
using namespace ov::test::conformance;
diff --git a/src/tests/functional/plugin/conformance/test_runner/api_conformance_runner/src/ov_plugin/core_integration.cpp b/src/tests/functional/plugin/conformance/test_runner/api_conformance_runner/src/ov_plugin/core_integration.cpp
index ed7ecb6c7f7..f20ae6beda0 100644
--- a/src/tests/functional/plugin/conformance/test_runner/api_conformance_runner/src/ov_plugin/core_integration.cpp
+++ b/src/tests/functional/plugin/conformance/test_runner/api_conformance_runner/src/ov_plugin/core_integration.cpp
@@ -12,6 +12,10 @@
using namespace ov::test::behavior;
using namespace ov::test::conformance;
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassCompileModelWithCondidateDeviceListContainedMetaPluginTest);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassSeveralDevicesTestCompileModel);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OVClassSeveralDevicesTestQueryModel);
+
namespace {
//
// OV Class Common tests with <pluginName, deviceName params>
diff --git a/src/tests/test_utils/common_test_utils/include/common_test_utils/all_close.hpp b/src/tests/test_utils/common_test_utils/include/common_test_utils/all_close.hpp
index 45850f48d6f..3489b6ec664 100644
--- a/src/tests/test_utils/common_test_utils/include/common_test_utils/all_close.hpp
+++ b/src/tests/test_utils/common_test_utils/include/common_test_utils/all_close.hpp
@@ -4,6 +4,7 @@
#pragma once
+#include <iomanip>
#include <vector>
#include "gtest/gtest.h"
diff --git a/src/tests/test_utils/common_test_utils/include/common_test_utils/postgres_helpers.hpp b/src/tests/test_utils/common_test_utils/include/common_test_utils/postgres_helpers.hpp
index cc3dad39cf4..fe3ac3e52c5 100644
--- a/src/tests/test_utils/common_test_utils/include/common_test_utils/postgres_helpers.hpp
+++ b/src/tests/test_utils/common_test_utils/include/common_test_utils/postgres_helpers.hpp
@@ -127,11 +127,9 @@ extern fnPQclear PQclear;
extern fnPQresultErrorMessage PQresultErrorMessage;
#endif
-extern const char* PGPrefix(const char* text, ::testing::internal::GTestColor color);
-
-#define PG_ERR PGPrefix("[ PG ERROR ] ", ::testing::internal::COLOR_RED)
-#define PG_WRN PGPrefix("[ PG WARN ] ", ::testing::internal::COLOR_YELLOW)
-#define PG_INF PGPrefix("[ PG INFO ] ", ::testing::internal::COLOR_GREEN)
+#define PG_ERR "[ PG ERROR ] "
+#define PG_WRN "[ PG WARN ] "
+#define PG_INF "[ PG INFO ] "
/// \brief Count of tries when serialization error is detected after query
const uint8_t serializationTriesCount = 30; // Pause between each attempt is not less than 50ms
diff --git a/src/tests/test_utils/common_test_utils/include/common_test_utils/test_control.hpp b/src/tests/test_utils/common_test_utils/include/common_test_utils/test_control.hpp
index 38c2568fc53..9a023159c85 100644
--- a/src/tests/test_utils/common_test_utils/include/common_test_utils/test_control.hpp
+++ b/src/tests/test_utils/common_test_utils/include/common_test_utils/test_control.hpp
@@ -23,12 +23,20 @@ std::string combine_test_backend_and_case(const std::string& backend_name, const
#define OPENVINO_GTEST_TEST_(backend_name, test_case_name, test_name, parent_class, parent_id) \
class OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name) : public parent_class { \
public: \
- OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name)() {} \
+ OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name)() = default; \
+ ~OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name)() override = default; \
+ OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name) \
+ (const OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name) &) = delete; \
+ OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name) & operator=( \
+ const OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name) &) = delete; \
+ OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name) \
+ (OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name) &&) noexcept = delete; \
+ OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name) & operator=( \
+ OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name) &&) noexcept = delete; \
\
private: \
void TestBody() override; \
- static ::testing::TestInfo* const test_info_ GTEST_ATTRIBUTE_UNUSED_; \
- GTEST_DISALLOW_COPY_AND_ASSIGN_(OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name)); \
+ [[maybe_unused]] static ::testing::TestInfo* const test_info_; \
}; \
\
::testing::TestInfo* const OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name)::test_info_ = \
@@ -39,8 +47,8 @@ std::string combine_test_backend_and_case(const std::string& backend_name, const
nullptr, \
::testing::internal::CodeLocation(__FILE__, __LINE__), \
(parent_id), \
- parent_class::SetUpTestCase, \
- parent_class::TearDownTestCase, \
+ ::testing::internal::SuiteApiResolver<parent_class>::GetSetUpCaseOrSuite(__FILE__, __LINE__), \
+ ::testing::internal::SuiteApiResolver<parent_class>::GetTearDownCaseOrSuite(__FILE__, __LINE__), \
new ::testing::internal::TestFactoryImpl< \
OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name)>); \
void OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name)::TestBody()
@@ -85,30 +93,33 @@ std::string combine_test_backend_and_case(const std::string& backend_name, const
// Start by defining a class derived from ::testing::TestWithParam<T>, which you'll pass
// for the test_case_name parameter.
// Then use OPENVINO_INSTANTIATE_TEST_SUITE_P to define each generation of test cases (see below).
-#define OPENVINO_TEST_P(backend_name, test_case_name, test_name) \
- class OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name) : public test_case_name { \
- public: \
- OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name)() {} \
- void TestBody() override; \
- \
- private: \
- static int AddToRegistry() { \
- ::testing::UnitTest::GetInstance() \
- ->parameterized_test_registry() \
- .GetTestCasePatternHolder<test_case_name>(#backend_name "/" #test_case_name, \
- ::testing::internal::CodeLocation(__FILE__, __LINE__)) \
- ->AddTestPattern( \
- #backend_name "/" #test_case_name, \
- ::ov::prepend_disabled(#backend_name "/" #test_case_name, #test_name, s_manifest).c_str(), \
- new ::testing::internal::TestMetaFactory< \
- OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name)>()); \
- return 0; \
- } \
- static int gtest_registering_dummy_ GTEST_ATTRIBUTE_UNUSED_; \
- GTEST_DISALLOW_COPY_AND_ASSIGN_(OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name)); \
- }; \
- int OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name)::gtest_registering_dummy_ = \
- OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name)::AddToRegistry(); \
+#define OPENVINO_TEST_P(backend_name, test_case_name, test_name) \
+ class OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name) : public test_case_name { \
+ public: \
+ OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name)() {} \
+ void TestBody() override; \
+ \
+ private: \
+ static int AddToRegistry() { \
+ ::testing::UnitTest::GetInstance() \
+ ->parameterized_test_registry() \
+ .GetTestCasePatternHolder<test_case_name>(#backend_name "/" #test_case_name, \
+ ::testing::internal::CodeLocation(__FILE__, __LINE__)) \
+ ->AddTestPattern( \
+ #backend_name "/" #test_case_name, \
+ ::ov::prepend_disabled(#backend_name "/" #test_case_name, #test_name, s_manifest).c_str(), \
+ new ::testing::internal::TestMetaFactory< \
+ OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name)>()); \
+ return 0; \
+ } \
+ [[maybe_unused]] static int gtest_registering_dummy_; \
+ OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name) \
+ (const OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name) &) = delete; \
+ OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name) & operator=( \
+ const OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name) &) = delete; \
+ }; \
+ int OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name)::gtest_registering_dummy_ = \
+ OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name)::AddToRegistry(); \
void OPENVINO_GTEST_TEST_CLASS_NAME_(backend_name, test_case_name, test_name)::TestBody()
// Use OPENVINO_INSTANTIATE_TEST_SUITE_P to create a generated set of test case variations.
@@ -153,7 +164,7 @@ std::string combine_test_backend_and_case(const std::string& backend_name, const
const ::testing::TestParamInfo<test_suite_name::ParamType>& info) { \
return ::testing::internal::DefaultParamName<test_suite_name::ParamType>(info); \
} \
- static int gtest_##prefix##backend_name##test_suite_name##_dummy_ GTEST_ATTRIBUTE_UNUSED_ = \
+ [[maybe_unused]] static int gtest_##prefix##backend_name##test_suite_name##_dummy_ = \
::testing::UnitTest::GetInstance() \
->parameterized_test_registry() \
.GetTestCasePatternHolder<test_suite_name>(#backend_name "/" #test_suite_name, \
diff --git a/src/tests/test_utils/common_test_utils/src/all_close_f.cpp b/src/tests/test_utils/common_test_utils/src/all_close_f.cpp
index 0a449d23252..c83c775c87e 100644
--- a/src/tests/test_utils/common_test_utils/src/all_close_f.cpp
+++ b/src/tests/test_utils/common_test_utils/src/all_close_f.cpp
@@ -6,6 +6,8 @@
#include <limits.h>
+#include <iomanip>
+
#include "common_test_utils/float_util.hpp"
#include "openvino/core/type/element_type_traits.hpp"
diff --git a/src/tests/test_utils/common_test_utils/src/postgres_helpers.cpp b/src/tests/test_utils/common_test_utils/src/postgres_helpers.cpp
index aaee1846b38..aec4f704b0a 100644
--- a/src/tests/test_utils/common_test_utils/src/postgres_helpers.cpp
+++ b/src/tests/test_utils/common_test_utils/src/postgres_helpers.cpp
@@ -4,6 +4,9 @@
#include "common_test_utils/postgres_helpers.hpp"
+#include <algorithm>
+#include <cctype>
+
namespace ov {
namespace test {
namespace utils {
@@ -26,18 +29,6 @@ fnPQgetisnull PQgetisnull;
fnPQclear PQclear;
fnPQresultErrorMessage PQresultErrorMessage;
-const char* PGPrefix(const char* text, ::testing::internal::GTestColor color) {
-#ifdef __GNUC__
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wformat-security"
-#endif
- ::testing::internal::ColoredPrintf(color, text);
-#ifdef __GNUC__
-#pragma GCC diagnostic pop
-#endif
- return "";
-}
-
PGresultHolder PostgreSQLConnection::common_query(const char* query) {
#ifdef PGQL_DEBUG
std::cerr << query << std::endl;
diff --git a/src/tests/test_utils/common_test_utils/src/unicode_utils.cpp b/src/tests/test_utils/common_test_utils/src/unicode_utils.cpp
index 58d83ef5a49..a1f7274173a 100644
--- a/src/tests/test_utils/common_test_utils/src/unicode_utils.cpp
+++ b/src/tests/test_utils/common_test_utils/src/unicode_utils.cpp
@@ -36,13 +36,4 @@ std::filesystem::path UnicodePathTest::get_path_param() const {
GetParam());
}
-INSTANTIATE_TEST_SUITE_P(string_paths, UnicodePathTest, testing::Values("test_folder"));
-INSTANTIATE_TEST_SUITE_P(u16_paths, UnicodePathTest, testing::Values(u"test_folder"));
-INSTANTIATE_TEST_SUITE_P(u32_paths, UnicodePathTest, testing::Values(U"test_folder"));
-INSTANTIATE_TEST_SUITE_P(wstring_paths, UnicodePathTest, testing::Values(L"test_folder"));
-
-#ifdef OPENVINO_ENABLE_UNICODE_PATH_SUPPORT
-INSTANTIATE_TEST_SUITE_P(unicode_paths, UnicodePathTest, unicode_paths);
-#endif
-
} // namespace ov::test
diff --git a/thirdparty/gtest/CMakeLists.txt b/thirdparty/gtest/CMakeLists.txt
index c2dac29f2bf..39137262a40 100644
--- a/thirdparty/gtest/CMakeLists.txt
+++ b/thirdparty/gtest/CMakeLists.txt
@@ -20,11 +20,14 @@ function(_ov_gtest_filter_install_interface TARGET TYPE)
get_target_property(include_dirs ${TARGET} INTERFACE_INCLUDE_DIRECTORIES)
foreach(include_dir IN LISTS include_dirs)
if(NOT include_dir MATCHES ".*INSTALL_INTERFACE.*")
- # remove leading and trailing parts of generator expressions
- string(REPLACE "$<BUILD_INTERFACE:" "" include_dir "${include_dir}")
- string(REPLACE ">" "" include_dir "${include_dir}")
- # wrap to BUILD_INTERFACE again
- list(APPEND final_include_dirs "$<BUILD_INTERFACE:${include_dir}>")
+ # unwrap the outer BUILD_INTERFACE, preserving inner generator
+ # expressions such as $<SEMICOLON> introduced by upstream gtest.
+ string(REGEX REPLACE "^\\$<BUILD_INTERFACE:(.*)>$" "\\1" include_dir "${include_dir}")
+ # expand $<SEMICOLON> back into a real list so we can rewrap each entry
+ string(REPLACE "$<SEMICOLON>" ";" include_dir "${include_dir}")
+ foreach(dir IN LISTS include_dir)
+ list(APPEND final_include_dirs "$<BUILD_INTERFACE:${dir}>")
+ endforeach()
endif()
endforeach()
diff --git a/thirdparty/gtest/gtest b/thirdparty/gtest/gtest
index 99760ac1776..03e2ed1291b 160000
--- a/thirdparty/gtest/gtest
+++ b/thirdparty/gtest/gtest
@@ -1 +1 @@
-Subproject commit 99760ac1776430f3df65947992bf4e8ebc0d7660
+Subproject commit 03e2ed1291b40062be24df240f597d995aaaa962