From fadf6e48639131c36708732a317dad1851583622 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 9 Mar 2018 12:23:54 +0000 Subject: lib: Assert that we do manage to submit at least one batch when measuring As we measure the ring size, we never expect to find we can not submit no batches at all. Assert against the unexpected. Signed-off-by: Chris Wilson Cc: Antonio Argenziano Reviewed-by: Antonio Argenziano --- lib/i915/gem_ring.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/i915/gem_ring.c b/lib/i915/gem_ring.c index 10d2f2cd..7d64165e 100644 --- a/lib/i915/gem_ring.c +++ b/lib/i915/gem_ring.c @@ -100,6 +100,7 @@ __gem_measure_ring_inflight(int fd, unsigned int engine, enum measure_ring_flags } while (1); igt_assert_eq(__execbuf(fd, &execbuf), -EINTR); + igt_assert(count); memset(&itv, 0, sizeof(itv)); setitimer(ITIMER_REAL, &itv, NULL); -- cgit v1.2.3