Skip to content

Commit 290d88b

Browse files
almiloszpraasz
andauthored
[Core] Test core.read_model(wchar path with unicode) (openvinotoolkit#35325)
### Details: Updated `read_model_with_const_wchar_path` in `ov_core_test.cpp` to use the first entry from `model_files_name_w` for the model path Follow up to openvinotoolkit#35040 ### AI Assistance: - AI assistance used: no --------- Co-authored-by: Pawel Raasz <pawel.raasz@intel.com>
1 parent e197397 commit 290d88b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/inference/tests/functional/ov_core_test.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,8 @@ TEST_F(CoreBaseTest, read_model_with_const_wchar_path) {
192192
generate_test_model_files("test-model");
193193

194194
ov::Core core;
195-
const std::wstring model_path_w = ov::util::string_to_wstring(model_file_name);
196-
const wchar_t* model_path = model_path_w.c_str();
197-
const auto model = core.read_model(model_path);
195+
ASSERT_FALSE(model_files_name_w.empty());
196+
const auto model = core.read_model(model_files_name_w.front().c_str());
198197
EXPECT_NE(model, nullptr);
199198
}
200199
#endif

0 commit comments

Comments
 (0)