diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-10-10 18:13:41 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-10-11 08:32:50 +0100 |
commit | eabe87de4652126480e2211d9c088a8eabea2c8a (patch) | |
tree | f5fe29bd98c87f038dbd9281f9ebf3e00296b425 /tests/syncobj_wait.c | |
parent | caa4a586f001e7c804a51df7090d2d05834d277f (diff) |
igt/syncobj_wait: Close the sw_sync timeline after the test
Closing the sw_sync timeline now signals any remaining fences upon it;
but test_wait_interrupted requires the fence to be busy for the
__syncobj_wait() not to immediately return with -ETIME (and so be
interrupted instead).
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103187
References: ea4d5a270b57 ("dma-buf/sw_sync: force signal all unsignaled fences on dying timeline")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jason Ekstrand <jason@jlekstrand.net>
Cc: Dave Airlie <airlied@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'tests/syncobj_wait.c')
-rw-r--r-- | tests/syncobj_wait.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/syncobj_wait.c b/tests/syncobj_wait.c index 78ed1fc5..5fd37808 100644 --- a/tests/syncobj_wait.c +++ b/tests/syncobj_wait.c @@ -726,13 +726,13 @@ test_wait_interrupted(int fd, uint32_t test_flags) } timeline = syncobj_attach_sw_sync(fd, syncobj); - close(timeline); wait.timeout_nsec = short_timeout(); igt_while_interruptible(true) igt_assert_eq(__syncobj_wait(fd, &wait), -ETIME); syncobj_destroy(fd, syncobj); + close(timeline); } static bool |