mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-27 17:56:15 +00:00
tests/gem_wait: Don't close drmfd in subtest
I didn't notice this on the machine I developed it since the original wait testcase fails there. Oops. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
764772c3c8
commit
5c0139c304
@ -179,7 +179,7 @@ static void render_timeout(int fd)
|
|||||||
if (timeout == (ENOUGH_WORK_IN_SECONDS * NSEC_PER_SEC))
|
if (timeout == (ENOUGH_WORK_IN_SECONDS * NSEC_PER_SEC))
|
||||||
igt_info("Buffer was already done!\n");
|
igt_info("Buffer was already done!\n");
|
||||||
else {
|
else {
|
||||||
igt_info("Finished with %lu time remaining\n", timeout);
|
igt_info("Finished with %llu time remaining\n", timeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* check that polling with timeout=0 works. */
|
/* check that polling with timeout=0 works. */
|
||||||
@ -212,8 +212,6 @@ static void render_timeout(int fd)
|
|||||||
drm_intel_bo_unreference(dst);
|
drm_intel_bo_unreference(dst);
|
||||||
intel_batchbuffer_free(batch);
|
intel_batchbuffer_free(batch);
|
||||||
drm_intel_bufmgr_destroy(bufmgr);
|
drm_intel_bufmgr_destroy(bufmgr);
|
||||||
|
|
||||||
close(fd);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void invalid_flags(int fd)
|
static void invalid_flags(int fd)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user