Skip to content

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

[TESTS] Add try catch block to CoreThreading tests (#32702)

Sorin Butnariuf12b6de5dfb6
diff --git a/src/plugins/intel_npu/tests/functional/shared_tests_instances/npu_skip_func_tests.xml b/src/plugins/intel_npu/tests/functional/shared_tests_instances/npu_skip_func_tests.xml
index 20b0bff6176..7dad67a48ca 100644
--- a/src/plugins/intel_npu/tests/functional/shared_tests_instances/npu_skip_func_tests.xml
+++ b/src/plugins/intel_npu/tests/functional/shared_tests_instances/npu_skip_func_tests.xml
@@ -608,12 +608,11 @@ Example:
<!-- E#112064 -->
<skip_config>
- <message>Failing common core threading tests</message>
+ <message>INFERENCE_PRECISION_HINT = FP32 not supported on NPU</message>
<enable_rules>
<backend>LEVEL0</backend>
</enable_rules>
<filters>
- <!-- INFERENCE_PRECISION_HINT = FP32 not supported on NPU -->
<filter>.*CoreThreadingTestsWithIter.smoke_CompileModel_Accuracy_SingleCore.*</filter>
<filter>.*CoreThreadingTestsWithIter.smoke_CompileModel_Accuracy_MultipleCores.*</filter>
</filters>
diff --git a/src/tests/functional/base_func_tests/include/behavior/ov_plugin/core_threading.hpp b/src/tests/functional/base_func_tests/include/behavior/ov_plugin/core_threading.hpp
index 3517a43fc1a..f13f0b54f9e 100644
--- a/src/tests/functional/base_func_tests/include/behavior/ov_plugin/core_threading.hpp
+++ b/src/tests/functional/base_func_tests/include/behavior/ov_plugin/core_threading.hpp
@@ -29,7 +29,7 @@ public:
for (auto& thread : threads) {
thread = std::thread([&]() {
for (unsigned int i = 0; i < iterations; ++i) {
- func();
+ OV_ASSERT_NO_THROW(func());
}
});
}