diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-05-02 12:11:26 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-05-03 15:13:23 +0100 |
commit | f772d9a910130b3aec8efa4f09ed723618fae656 (patch) | |
tree | 09fee5789d487005a1e121721039a478dab3c028 /tests | |
parent | 1b8977e08031253d61b4641bc21e5c7a990d4a4f (diff) |
igt/gem_wait: Relax assertion for wait completion
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@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gem_wait.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_wait.c b/tests/gem_wait.c index 1d10055b..61d8a405 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); |