diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-06-17 16:04:09 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-06-17 16:04:09 +0200 |
commit | be21fc064b6d9ded5ccae7205204c0d5a03cf9e5 (patch) | |
tree | c2d69d5b4d1704a4a2439f6a3708df6a419dfbf1 /tests/gem_exec_gttfill.c | |
parent | e63a0681d95a7288faff19a624548f96dbc73341 (diff) |
tests: Push igt_fork/stop_hang_detector into fixtures
It access hardware, hence why the simple igt_only_list_subtests()
check from igt_fork/stop_signal_helper() isn't enough.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'tests/gem_exec_gttfill.c')
-rw-r--r-- | tests/gem_exec_gttfill.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/gem_exec_gttfill.c b/tests/gem_exec_gttfill.c index 5966125c..3ec43dcf 100644 --- a/tests/gem_exec_gttfill.c +++ b/tests/gem_exec_gttfill.c @@ -196,10 +196,9 @@ igt_main igt_fixture { device = drm_open_driver(DRIVER_INTEL); + igt_fork_hang_detector(device); } - igt_fork_hang_detector(device); - igt_subtest("basic") fillgtt(device, 0, 1); /* just enough to run a single pass */ @@ -210,9 +209,8 @@ igt_main igt_subtest("all") fillgtt(device, 0, 150); - igt_stop_hang_detector(); - igt_fixture { + igt_stop_hang_detector(); close(device); } } |