tests/kms_flip: Skip if no clone configuration could be found
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 7 Oct 2013 20:55:14 +0000 (22:55 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 7 Oct 2013 20:55:14 +0000 (22:55 +0200)
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/kms_flip.c

index 48f7a8f..5887d43 100644 (file)
@@ -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;