summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-09-13 10:43:04 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-09-13 10:43:40 +0100
commitc947bfe563fe16bcad8b7b53b98e32de5aa0d7a6 (patch)
tree3094767808f8de8244037c7d4b115ec93c37f614 /tests
parent3e585fe1651c2f2b3f3ef89ccc5c91a25e1450e9 (diff)
igt/gem_busy: Actually flag the hang tests to cause a GPU hang
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_busy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/gem_busy.c b/tests/gem_busy.c
index c2fae6d7..10cb1ad4 100644
--- a/tests/gem_busy.c
+++ b/tests/gem_busy.c
@@ -439,6 +439,8 @@ static void close_race(int fd)
munmap(handles, N_HANDLES * sizeof(*handles));
munmap(control, 4096);
+
+ gem_quiescent_gpu(fd);
}
static bool has_semaphores(int fd)
@@ -691,7 +693,7 @@ igt_main
e->name) {
igt_require(gem_has_ring(fd, e->exec_id | e->flags));
gem_quiescent_gpu(fd);
- basic(fd, e->exec_id | e->flags, 0);
+ basic(fd, e->exec_id | e->flags, HANG);
}
}
}