Skip to content

Commit

Permalink
Add a test case for checking the validity of device name with parenth…
Browse files Browse the repository at this point in the history
…eses followed by commas at the end.
  • Loading branch information
awayzjj committed Mar 3, 2024
1 parent 2bc1f05 commit 0db6521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inference/tests/unit/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ TEST(CoreTests_parse_device_config, get_device_config) {
// invalid device name with characters after parenthesis except comma
EXPECT_THROW(ov::parseDeviceNameIntoConfig("DEVICE(0)ov", ov::AnyMap{}), ov::Exception);
EXPECT_THROW(ov::parseDeviceNameIntoConfig("MULTI:DEVICE(0)ov,DEVICE(1)", ov::AnyMap{}), ov::Exception);

EXPECT_NO_THROW(ov::parseDeviceNameIntoConfig("MULTI:DEVICE(0),DEVICE(1),", ov::AnyMap{}));
}

class ApplyAutoBatchThreading : public testing::Test {
Expand Down

0 comments on commit 0db6521

Please sign in to comment.