summaryrefslogtreecommitdiff
path: root/tests/gem_exec_suspend.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-03-25 18:22:54 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-03-25 18:26:46 +0000
commit9d61a685e982aa544ca802fe1758aa19ea9987cc (patch)
tree033640527e9325b3f3be1dba304b4466937f0c71 /tests/gem_exec_suspend.c
parent98dcf2f0dcf7097a9404c0598ade4fc94cffeaac (diff)
igt/gem: Add GPU hang detection to basic tests
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_exec_suspend.c')
-rw-r--r--tests/gem_exec_suspend.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gem_exec_suspend.c b/tests/gem_exec_suspend.c
index 6babed8c..687bbeef 100644
--- a/tests/gem_exec_suspend.c
+++ b/tests/gem_exec_suspend.c
@@ -241,6 +241,8 @@ igt_main
igt_fixture
fd = drm_open_driver_master(DRIVER_INTEL);
+ igt_fork_hang_detector(fd);
+
igt_subtest("basic-S3")
run_test(fd, -1, SUSPEND);
igt_subtest("basic-S4")
@@ -257,6 +259,8 @@ igt_main
}
}
+ igt_stop_hang_detector();
+
igt_fixture
close(fd);
}