Skip to content

Commit e61136d

Browse files
Fix invalid case style clang-tidy warning
Fix clang tidy warning reported, by modifying get_prop_length() to getPropLength(). Change-Id: Ib3fc49b49f93cd7900e2556098ca64c2afe7014b Signed-off-by: Jitendra Sharma <[email protected]>
1 parent 4f5c80c commit e61136d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

level_zero/tools/test/unit_tests/sources/sysman/sysman_device/linux/test_sysman_device.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class SysmanSysmanDeviceFixture : public DeviceFixture, public ::testing::Test {
8080
DeviceFixture::TearDown();
8181
}
8282

83-
uint32_t get_prop_length(int8_t prop[ZET_STRING_PROPERTY_SIZE]) {
83+
uint32_t getPropLength(int8_t prop[ZET_STRING_PROPERTY_SIZE]) {
8484
uint32_t length = 0;
8585
for (int i = 0; i < ZET_STRING_PROPERTY_SIZE; i++) {
8686
if (prop[i] == '\0') {
@@ -100,12 +100,12 @@ TEST_F(SysmanSysmanDeviceFixture, GivenValidSysmanHandleWhenCallingzetSysmanDevi
100100

101101
EXPECT_EQ(ZE_RESULT_SUCCESS, result);
102102
EXPECT_EQ(properties.numSubdevices, 0u);
103-
EXPECT_TRUE(0 == std::memcmp(properties.boardNumber, unknown.c_str(), get_prop_length(properties.boardNumber)));
104-
EXPECT_TRUE(0 == std::memcmp(properties.brandName, vendorIntel.c_str(), get_prop_length(properties.brandName)));
105-
EXPECT_TRUE(0 == std::memcmp(properties.driverVersion, unknown.c_str(), get_prop_length(properties.driverVersion)));
106-
EXPECT_TRUE(0 == std::memcmp(properties.modelName, expectedModelName.c_str(), get_prop_length(properties.modelName)));
107-
EXPECT_TRUE(0 == std::memcmp(properties.serialNumber, unknown.c_str(), get_prop_length(properties.serialNumber)));
108-
EXPECT_TRUE(0 == std::memcmp(properties.vendorName, vendorIntel.c_str(), get_prop_length(properties.vendorName)));
103+
EXPECT_TRUE(0 == std::memcmp(properties.boardNumber, unknown.c_str(), getPropLength(properties.boardNumber)));
104+
EXPECT_TRUE(0 == std::memcmp(properties.brandName, vendorIntel.c_str(), getPropLength(properties.brandName)));
105+
EXPECT_TRUE(0 == std::memcmp(properties.driverVersion, unknown.c_str(), getPropLength(properties.driverVersion)));
106+
EXPECT_TRUE(0 == std::memcmp(properties.modelName, expectedModelName.c_str(), getPropLength(properties.modelName)));
107+
EXPECT_TRUE(0 == std::memcmp(properties.serialNumber, unknown.c_str(), getPropLength(properties.serialNumber)));
108+
EXPECT_TRUE(0 == std::memcmp(properties.vendorName, vendorIntel.c_str(), getPropLength(properties.vendorName)));
109109
}
110110

111111
TEST_F(SysmanSysmanDeviceFixture, GivenValidSysmanHandleWhileRetrievingInformationAboutHostProcessesUsingDeviceThenSuccessIsReturned) {

0 commit comments

Comments
 (0)