From d406249bedb61120ea3f8c780ea995b8c70d3d8c Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Wed, 26 Feb 2014 15:42:07 -0300 Subject: [PATCH] tests/pm_pc8: use intel_gen instead of a big IS_GEN check Much better! Signed-off-by: Paulo Zanoni --- tests/pm_pc8.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/pm_pc8.c b/tests/pm_pc8.c index ab33d419..53c1be30 100644 --- a/tests/pm_pc8.c +++ b/tests/pm_pc8.c @@ -1003,8 +1003,7 @@ static void debugfs_forcewake_user_subtest(void) { int fd, rc; - igt_require(!(IS_GEN2(ms_data.devid) || IS_GEN3(ms_data.devid) || - IS_GEN4(ms_data.devid) || IS_GEN5(ms_data.devid))); + igt_require(intel_gen(ms_data.devid) >= 6); disable_all_screens(&ms_data); igt_assert(wait_for_suspended());