Skip to content

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

[Core] Test core.read_model(wchar path with unicode) (#35325)

Alicja Miloszewska290d88bb5629
diff --git a/src/inference/tests/functional/ov_core_test.cpp b/src/inference/tests/functional/ov_core_test.cpp
index 1cb429fb0b6..18353eed869 100644
--- a/src/inference/tests/functional/ov_core_test.cpp
+++ b/src/inference/tests/functional/ov_core_test.cpp
@@ -192,9 +192,8 @@ TEST_F(CoreBaseTest, read_model_with_const_wchar_path) {
generate_test_model_files("test-model");
ov::Core core;
- const std::wstring model_path_w = ov::util::string_to_wstring(model_file_name);
- const wchar_t* model_path = model_path_w.c_str();
- const auto model = core.read_model(model_path);
+ ASSERT_FALSE(model_files_name_w.empty());
+ const auto model = core.read_model(model_files_name_w.front().c_str());
EXPECT_NE(model, nullptr);
}
#endif