igt/gem: Add GPU hang detection to basic tests

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson
2016-03-25 18:22:54 +00:00
parent 98dcf2f0dc
commit 9d61a685e9
5 changed files with 20 additions and 0 deletions
+4
View File
@@ -107,6 +107,8 @@ igt_main
igt_fixture
fd = drm_open_driver(DRIVER_INTEL);
igt_fork_hang_detector(fd);
for (e = intel_execution_engines; e->name; e++) {
igt_subtest_f("basic-%s", e->name)
noop(fd, e->exec_id | e->flags);
@@ -116,6 +118,8 @@ igt_main
gtt(fd, e->exec_id | e->flags);
}
igt_stop_hang_detector();
igt_fixture
close(fd);
}