From 304c458d542a3eee928c0004432aea8f20ca42fb Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Mon, 7 Oct 2013 22:55:14 +0200 Subject: [PATCH] tests/kms_flip: Skip if no clone configuration could be found Signed-off-by: Daniel Vetter --- tests/kms_flip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/kms_flip.c b/tests/kms_flip.c index 48f7a8f..5887d43 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -1343,7 +1343,9 @@ static int run_pair(int duration, int flags) } } - igt_assert(modes); + /* If we have fewer than 2 connected outputs then we won't have any + * configuration at all. So skip in that case. */ + igt_require(modes); duration = duration * 1000 / modes; duration = duration < 500 ? 500 : duration; -- 2.7.4