Fix test error

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>
This commit is contained in:
Zhai, Xuejun 2024-06-12 10:43:01 +08:00
parent e27e55ea01
commit 4ba265a452
1 changed files with 2 additions and 2 deletions

View File

@ -697,7 +697,7 @@ bool ov::util::is_symlink_or_hardlink(const std::string& path) {
if (path.empty())
return false;
fs::path p = fs::path(path);
return fs::is_symlink(p) || (fs::hard_link_count(p) > 1);
return fs::hard_link_count(p) > 1;
}
# ifdef OPENVINO_ENABLE_UNICODE_PATH_SUPPORT
@ -705,7 +705,7 @@ bool ov::util::is_symlink_or_hardlink(const std::wstring& path) {
if (path.empty())
return false;
fs::path p = fs::path(path);
return fs::is_symlink(p) || (fs::hard_link_count(p) > 1);
return (fs::hard_link_count(p) > 1);
}
# endif
#endif