Fixed close fd after calling drm ioctl prime fd to handle

Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:
Slawomir Milczarek
2020-11-16 12:12:55 +01:00
committed by Compute-Runtime-Automation
parent 0f42ef1ed7
commit 4ca1784712
2 changed files with 5 additions and 2 deletions

View File

@@ -38,6 +38,9 @@ inline int munmapMock(void *addr, size_t length) noexcept {
inline off_t lseekMock(int fd, off_t offset, int whence) noexcept {
lseekCalledCount++;
if ((fd == closeInputFd) && (closeCalledCount > 0)) {
return 0;
}
return lseekReturn;
}
inline int closeMock(int fd) {