diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-10-06 08:32:49 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-10-06 08:32:49 +0200 |
commit | 5c0139c3046a390204c6339468b22779f76460b1 (patch) | |
tree | f8be19919ab3aafcb22900571f573897bb76aded /tests | |
parent | 764772c3c8059a6a9d1a569d9c4bd180e11c4d33 (diff) |
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gem_wait.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/gem_wait.c b/tests/gem_wait.c index 83ddb972..1320c7b9 100644 --- a/tests/gem_wait.c +++ b/tests/gem_wait.c @@ -179,7 +179,7 @@ static void render_timeout(int fd) if (timeout == (ENOUGH_WORK_IN_SECONDS * NSEC_PER_SEC)) igt_info("Buffer was already done!\n"); 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. */ @@ -212,8 +212,6 @@ static void render_timeout(int fd) drm_intel_bo_unreference(dst); intel_batchbuffer_free(batch); drm_intel_bufmgr_destroy(bufmgr); - - close(fd); } static void invalid_flags(int fd) |