From ea4aa70f3c83a942ee34868ade1eba126b15d879 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 19 Mar 2015 08:36:25 +0000 Subject: [PATCH] igt/gem_wait: When waiting for infinity, an infinity remains Incorrect testing of out parameters leads to bug noise... Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89494#c4 Signed-off-by: Chris Wilson --- tests/gem_wait.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gem_wait.c b/tests/gem_wait.c index 67317ddf..958bf93f 100644 --- a/tests/gem_wait.c +++ b/tests/gem_wait.c @@ -215,7 +215,7 @@ static void render_timeout(int fd) intel_batchbuffer_flush(batch); igt_assert_eq(gem_bo_wait_timeout(fd, dst2->handle, &negative_timeout), 0); - igt_assert_eq(negative_timeout, 0); + igt_assert_eq(negative_timeout, -1); /* infinity always remains */ igt_assert(gem_bo_busy(fd, dst2->handle) == false); if (do_signals)