mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 08:07:19 +08:00
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:
committed by
Compute-Runtime-Automation
parent
0977d9e09d
commit
dafaaf5f7d
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
@@ -662,6 +662,7 @@ TEST(IoctlHelperXeTest, whenCallingIoctlThenProperValueIsReturned) {
|
||||
}
|
||||
auto engineInfo = mockXeIoctlHelper->createEngineInfo(false);
|
||||
EXPECT_NE(nullptr, engineInfo);
|
||||
EXPECT_TRUE(engineInfo->hasEngines());
|
||||
{
|
||||
GetParam test = {};
|
||||
int dstvalue;
|
||||
|
||||
Reference in New Issue
Block a user