summaryrefslogtreecommitdiff
path: root/tests/gem_exec_flush.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-06-02 15:00:14 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-06-02 15:02:57 +0100
commit54577e7a83f5bfc2e97245badd043f78d5c8ee4f (patch)
treefbc583e50c83ef253f578ae5149f0a9c604300cb /tests/gem_exec_flush.c
parent0e11befe4426c2accb1f350a63ae99022179c41b (diff)
Mark up a few more execbuf tests with automatic fail for missed-interrupts
Too many interrupts missed being ignored. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_exec_flush.c')
-rw-r--r--tests/gem_exec_flush.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gem_exec_flush.c b/tests/gem_exec_flush.c
index d08b843a..e4207895 100644
--- a/tests/gem_exec_flush.c
+++ b/tests/gem_exec_flush.c
@@ -306,6 +306,7 @@ static void batch(int fd, unsigned ring, int nchild, int timeout,
igt_require(cmdparser > 0);
}
+ intel_detect_and_clear_missed_interrupts(fd);
igt_fork(child, nchild) {
const uint32_t bbe = MI_BATCH_BUFFER_END;
struct drm_i915_gem_exec_object2 obj[2];
@@ -471,6 +472,7 @@ static void batch(int fd, unsigned ring, int nchild, int timeout,
gem_close(fd, obj[0].handle);
}
igt_waitchildren();
+ igt_assert_eq(intel_detect_and_clear_missed_interrupts(fd), 0);
}
static const char *yesno(bool x)