lib/gt: api polish for igt_can_hang_ring

Align with common igt library style:
- Push the igt_require into the function.
- Push the intel_gen into the function.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
This commit is contained in:
Daniel Vetter
2015-02-06 10:49:20 +01:00
parent 9ca2cc12b4
commit c66b2425e7
5 changed files with 10 additions and 16 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ igt_main
igt_stop_signal_helper();
igt_subtest_f("%s-hang", t->name) {
igt_require(igt_can_hang_ring(fd, batch->gen, -1));
igt_require_hang_ring(fd, -1);
do_test(fd, t->cache, src, start, dst, 1, bcs_hang);
}
}