summaryrefslogtreecommitdiff
path: root/tests/gem_exec_parallel.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_parallel.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_parallel.c')
-rw-r--r--tests/gem_exec_parallel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gem_exec_parallel.c b/tests/gem_exec_parallel.c
index fa9eb91c..2c04ca16 100644
--- a/tests/gem_exec_parallel.c
+++ b/tests/gem_exec_parallel.c
@@ -218,6 +218,7 @@ static void all(int fd, unsigned engine, unsigned flags)
threads = calloc(1024, sizeof(struct thread));
igt_assert(threads);
+ intel_detect_and_clear_missed_interrupts(fd);
pthread_mutex_init(&mutex, 0);
pthread_cond_init(&cond, 0);
go = 0;
@@ -249,6 +250,7 @@ static void all(int fd, unsigned engine, unsigned flags)
gem_close(fd, handle[i]);
}
+ igt_assert_eq(intel_detect_and_clear_missed_interrupts(fd), 0);
free(threads);
}