mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
Compute-Runtime-Automation

parent
a3903c385e
commit
9683d23e2f
@ -119,8 +119,6 @@ int DrmMock::ioctl(DrmIoctl request, void *arg) {
|
||||
|
||||
if ((request == DrmIoctl::GemVmDestroy) && (arg != nullptr)) {
|
||||
ioctlCount.gemVmDestroy++;
|
||||
ioctlCallsCount--;
|
||||
ioctlCount.total--;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user