mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 07:14:10 +08:00
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:
committed by
Compute-Runtime-Automation
parent
0f42ef1ed7
commit
4ca1784712
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user