From 0db6521191eb2937fd42316660a32036e4d2fecc Mon Sep 17 00:00:00 2001 From: awayzjj Date: Sun, 3 Mar 2024 21:23:20 +0800 Subject: [PATCH] Add a test case for checking the validity of device name with parentheses followed by commas at the end. --- src/inference/tests/unit/core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inference/tests/unit/core.cpp b/src/inference/tests/unit/core.cpp index 856fe600296d4b..8515e86f843e28 100644 --- a/src/inference/tests/unit/core.cpp +++ b/src/inference/tests/unit/core.cpp @@ -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 {