Skip to content

Commit 4a47b0f

Browse files
Pichika Uday KiranCompute-Runtime-Automation
authored andcommitted
ULT: ULT code coverage for Global operations sysman module
- Changes to improve the code coverage for Global Operations sysman module Related-To: LOCI-2114 Signed-off-by: Pichika Uday Kiran <[email protected]>
1 parent 23b8908 commit 4a47b0f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

level_zero/tools/test/unit_tests/sources/sysman/global_operations/linux/test_zes_global_operations.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,12 @@ TEST_F(SysmanGlobalOperationsFixture, GivenValidDeviceHandleWhileRetrievingInfor
247247
EXPECT_EQ(processes[2].sharedSize, sharedMemSize4);
248248
}
249249

250+
TEST_F(SysmanGlobalOperationsFixture, GivenValidDeviceHandleWhileCountValueIsProvidedThenFailureIsReturned) {
251+
uint32_t count = 2;
252+
253+
ASSERT_EQ(ZE_RESULT_ERROR_INVALID_SIZE, zesDeviceProcessesGetState(device, &count, nullptr));
254+
}
255+
250256
TEST_F(SysmanGlobalOperationsFixture, GivenValidDeviceHandleWhileRetrievingInformationAboutHostProcessesUsingFaultyClientFileThenFailureIsReturned) {
251257
uint32_t count = 0;
252258
ON_CALL(*pSysfsAccess.get(), scanDirEntries(_, _))

0 commit comments

Comments
 (0)