Skip to content

Commit

Permalink
Fix crash caused by empty string
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Peter <[email protected]>
  • Loading branch information
peterchen-intel committed Aug 27, 2024
1 parent 528f85c commit e2b5389
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ INSTANTIATE_TEST_SUITE_P(
ov_plugin,
OVCheckChangePropComplieModleGetPropTests_InferencePrecision,
::testing::Combine(::testing::Values(ov::test::utils::target_device), ::testing::Values(ov::AnyMap({}))),
MARK_MANDATORY_FOR_HW_DEVICE(OVCheckChangePropComplieModleGetPropTests_InferencePrecision::getTestCaseName));
MARK_MANDATORY_PROPERTY_FOR_HW_DEVICE(OVCheckChangePropComplieModleGetPropTests_InferencePrecision::getTestCaseName));

INSTANTIATE_TEST_SUITE_P(ov_plugin, OVCheckMetricsPropsTests_ModelDependceProps,
::testing::Combine(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
#include "common_test_utils/subgraph_builders/concat_with_params.hpp"
#include "common_test_utils/subgraph_builders/split_concat.hpp"

#define MARK_MANDATORY_FOR_HW_DEVICE(GET_TEST_NAME) \
[&](const testing::TestParamInfo<PropertiesParams>& info) { \
#define MARK_MANDATORY_PROPERTY_FOR_HW_DEVICE(GET_TEST_NAME) \
[](const testing::TestParamInfo<PropertiesParams>& info) { \
std::string name = GET_TEST_NAME(info); \
return sw_plugin_in_target_device(ov::test::utils::target_device) ? "" : "mandatory_" + name; \
return (sw_plugin_in_target_device(ov::test::utils::target_device) ? "optional_" : "mandatory_") + name; \
}

namespace ov {
Expand Down

0 comments on commit e2b5389

Please sign in to comment.