From: Daniel Vetter Date: Mon, 30 Sep 2013 19:35:47 +0000 (+0200) Subject: tests/kms_flip: fail harder X-Git-Tag: intel-gpu-tools-1.5~135 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f89d5403ef85c1f101c0f1026cf9b800bbaaea9;p=profile%2Fextras%2Fintel-gpu-tools.git tests/kms_flip: fail harder At least for pipe A/B we should always fail the test if we can't light up the preferred mode - the kernel should filter out impossible modes and for our hw pipe A/B are the least constrained. Signed-off-by: Daniel Vetter --- diff --git a/tests/kms_flip.c b/tests/kms_flip.c index 8b972bb..079bdfa 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -1170,11 +1170,7 @@ static void run_test_on_crtc(struct test_output *o, int crtc_idx, int duration) /* We may fail to apply the mode if there are hidden * constraints, such as bandwidth on the third pipe. */ - if (0) { - fprintf(stderr, "failed to set mode (%dx%d@%dHz): %s\n", - o->kmode[0].hdisplay, o->kmode[0].vdisplay, o->kmode[0].vrefresh, - strerror(errno)); - } + igt_assert_f(crtc_idx < 2, "set_mode may only fail on the 3rd pipe\n"); goto out; } igt_assert(fb_is_bound(o, o->fb_ids[0]));