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 <pichika.uday.kiran@intel.com>
This commit is contained in:
Pichika Uday Kiran 2021-08-18 15:29:58 +05:30 committed by Compute-Runtime-Automation
parent 23b890859d
commit 4a47b0f48c
1 changed files with 6 additions and 0 deletions

View File

@ -247,6 +247,12 @@ TEST_F(SysmanGlobalOperationsFixture, GivenValidDeviceHandleWhileRetrievingInfor
EXPECT_EQ(processes[2].sharedSize, sharedMemSize4);
}
TEST_F(SysmanGlobalOperationsFixture, GivenValidDeviceHandleWhileCountValueIsProvidedThenFailureIsReturned) {
uint32_t count = 2;
ASSERT_EQ(ZE_RESULT_ERROR_INVALID_SIZE, zesDeviceProcessesGetState(device, &count, nullptr));
}
TEST_F(SysmanGlobalOperationsFixture, GivenValidDeviceHandleWhileRetrievingInformationAboutHostProcessesUsingFaultyClientFileThenFailureIsReturned) {
uint32_t count = 0;
ON_CALL(*pSysfsAccess.get(), scanDirEntries(_, _))