refactor: adjust unit tests to work with secondary engines

Related-To: NEO-12952, NEO-13789


Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2025-01-21 16:36:41 +00:00
committed by Compute-Runtime-Automation
parent c0838e1f76
commit 19a0a27862
17 changed files with 94 additions and 64 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2024 Intel Corporation
* Copyright (C) 2019-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -91,6 +91,10 @@ void DrmMemoryManagerFixture::tearDown() {
enginesCount += engineContainer.size();
}
for (auto &engineContainer : memoryManager->secondaryEngines) {
enginesCount -= engineContainer.size();
}
mock->ioctlExpected.contextDestroy = enginesCount;
mock->ioctlExpected.gemClose = enginesCount;
mock->ioctlExpected.gemWait = enginesCount;