When waiting for a finite batch, all that we require is that the batch completes. If it takes the full second (or longer) for us to wake up and notice the completed batch is immaterial, so only assert that we don't report an infinite timeout afterwards. Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> --- 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 1d10055bb..61d8a4059 100644 --- a/tests/gem_wait.c +++ b/tests/gem_wait.c @@ -113,7 +113,7 @@ static void basic(int fd, unsigned engine, unsigned flags) igt_spin_batch_set_timeout(spin, NSEC_PER_SEC/2); wait.timeout_ns = NSEC_PER_SEC; /* 1.0s */ igt_assert_eq(__gem_wait(fd, &wait), 0); - igt_assert(wait.timeout_ns > 0); + igt_assert(wait.timeout_ns >= 0); } else { wait.timeout_ns = -1; igt_assert_eq(__gem_wait(fd, &wait), 0); -- 2.17.0 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx