fix: add hasEngines() to check for engines detection

Related-To: NEO-9754
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
This commit is contained in:
Maciej Bielski
2024-05-21 17:10:41 +00:00
committed by Compute-Runtime-Automation
parent 0977d9e09d
commit dafaaf5f7d
5 changed files with 9 additions and 2 deletions

View File

@@ -583,10 +583,11 @@ TEST(IoctlHelperTestsUpstream, givenUpstreamWhenQueryEngineInfoWithoutDeviceMemo
EXPECT_EQ(2u, drm->ioctlCallsCount);
auto engineInfo = drm->getEngineInfo();
ASSERT_NE(nullptr, engineInfo);
std::vector<EngineClassInstance> engines;
engineInfo->getListOfEnginesOnATile(0, engines);
auto totalEnginesCount = engineInfo->engines.size();
ASSERT_NE(nullptr, engineInfo);
EXPECT_TRUE(engineInfo->hasEngines());
EXPECT_EQ(totalEnginesCount, engines.size());
}

View File

@@ -662,6 +662,7 @@ TEST(IoctlHelperXeTest, whenCallingIoctlThenProperValueIsReturned) {
}
auto engineInfo = mockXeIoctlHelper->createEngineInfo(false);
EXPECT_NE(nullptr, engineInfo);
EXPECT_TRUE(engineInfo->hasEngines());
{
GetParam test = {};
int dstvalue;