ULT: include vm destroy ioctls in expected ioctls on destroy

Related-To: NEO-6852, NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-07-25 13:32:12 +00:00
committed by Compute-Runtime-Automation
parent a3903c385e
commit 9683d23e2f
3 changed files with 3 additions and 5 deletions

View File

@ -119,8 +119,6 @@ int DrmMock::ioctl(DrmIoctl request, void *arg) {
if ((request == DrmIoctl::GemVmDestroy) && (arg != nullptr)) {
ioctlCount.gemVmDestroy++;
ioctlCallsCount--;
ioctlCount.total--;
return 0;
}

View File

@ -71,7 +71,7 @@ class DrmCommandStreamTest : public ::testing::Test {
}
// Expect 1 call with DRM_IOCTL_I915_GEM_CONTEXT_DESTROY request on destroyDrmContext
// Expect 1 call with DRM_IOCTL_GEM_CLOSE request on BufferObject close
mock->expectedIoctlCallsOnDestruction = mock->ioctlCallsCount + 2;
mock->expectedIoctlCallsOnDestruction = mock->ioctlCallsCount + 2 + static_cast<uint32_t>(mock->virtualMemoryIds.size());
mock->expectIoctlCallsOnDestruction = true;
}

View File

@ -324,7 +324,7 @@ class DrmCommandStreamForceTileTest : public ::testing::Test {
delete csr;
// Expect 2 calls with DRM_IOCTL_I915_GEM_CONTEXT_DESTROY request on OsContextLinux destruction
// Expect 1 call with DRM_IOCTL_GEM_CLOSE request on BufferObject close
mock->expectedIoctlCallsOnDestruction = mock->ioctlCallsCount + 3;
mock->expectedIoctlCallsOnDestruction = mock->ioctlCallsCount + 3 + static_cast<uint32_t>(mock->virtualMemoryIds.size());
mock->expectIoctlCallsOnDestruction = true;
}
@ -420,7 +420,7 @@ struct DrmImplicitScalingCommandStreamTest : ::testing::Test {
void TearDown() override {
// Expect 2 calls with DRM_IOCTL_I915_GEM_CONTEXT_DESTROY request on OsContextLinux destruction
// Expect 1 call with DRM_IOCTL_GEM_CLOSE request on BufferObject close
drm->expectedIoctlCallsOnDestruction = drm->ioctlCallsCount + 3;
drm->expectedIoctlCallsOnDestruction = drm->ioctlCallsCount + 3 + static_cast<uint32_t>(drm->virtualMemoryIds.size());
drm->expectIoctlCallsOnDestruction = true;
}