diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-25 18:22:54 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-25 18:26:46 +0000 |
commit | 9d61a685e982aa544ca802fe1758aa19ea9987cc (patch) | |
tree | 033640527e9325b3f3be1dba304b4466937f0c71 /tests/gem_exec_nop.c | |
parent | 98dcf2f0dcf7097a9404c0598ade4fc94cffeaac (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_nop.c')
-rw-r--r-- | tests/gem_exec_nop.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gem_exec_nop.c b/tests/gem_exec_nop.c index c7bb3269..4134b24a 100644 --- a/tests/gem_exec_nop.c +++ b/tests/gem_exec_nop.c @@ -166,6 +166,8 @@ igt_main gem_write(device, handle, 0, &bbe, sizeof(bbe)); } + igt_fork_hang_detector(device); + igt_subtest("basic") all(device, handle, 10); @@ -176,6 +178,8 @@ igt_main igt_subtest("all") all(device, handle, 150); + igt_stop_hang_detector(); + igt_fixture { gem_close(device, handle); close(device); |