lib/igt_kms.c: igt_require -> igt_require_f("two displays required\n")

The bare "Test requirement: modes" message is too cryptic, I had to go and
read the source code to understand the missing requirement.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Marc Herbert 2015-02-26 18:43:43 -08:00 committed by Daniel Vetter
parent 8e0a0c9de6
commit d73c5eb977

View File

@ -1544,7 +1544,7 @@ static int run_pair(int duration, int flags)
/* 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);
igt_require_f(modes, "At least two displays required\n");
duration = duration * 1000 / modes;
duration = max(duration, 500);