From 4d4f4b213ca95dad59bdf8080d7bb034aa2d307a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 19 Jul 2014 11:59:42 +0100 Subject: [PATCH] igt/kms_flip: Skip if headless If there are no connectors, we cannot perform any pageflips and so we have nothing to test. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73640&list_id=446828 Signed-off-by: Chris Wilson --- tests/kms_flip.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/kms_flip.c b/tests/kms_flip.c index 337e2245..92f4eb52 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -1370,7 +1370,6 @@ static int run_test(int duration, int flags) igt_require((flags & TEST_HANG) == 0 || !is_hung(drm_fd)); - if (flags & TEST_RPM) igt_require(igt_setup_runtime_pm()); @@ -1397,7 +1396,7 @@ static int run_test(int duration, int flags) } } - igt_assert(modes); + igt_require(modes); duration = duration * 1000 / modes; duration = duration < 500 ? 500 : duration;