diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-02-21 15:08:22 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-02-21 15:19:01 +0000 |
commit | 0cc6a219f1de667ddc0c9a4011dc1c36a584be7b (patch) | |
tree | 298ad5800a11b9260c70a4036f4774816da4bf13 /tests | |
parent | bf74a0ca3fa3b2656c5656c2365d11b6b406dbe6 (diff) |
kms_flip: Assert that hang_gpu() should only fail is the GPU is already hung
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/kms_flip.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/kms_flip.c b/tests/kms_flip.c index bb105c81..a42b4469 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -747,6 +747,9 @@ static uint32_t hang_gpu(int fd) execbuf.batch_len = sizeof(b); if (drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &execbuf)) { + igt_assert_f(errno == EIO, + "failed to exercise page flip hang recovery\n"); + unhang_gpu(fd, gem_exec.handle); gem_exec.handle = 0; } |