tests/kms_flip: Skip if no clone configuration could be found

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter 2013-10-07 22:55:14 +02:00
parent bc888c2b42
commit 304c458d54

View 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;