From 5f190f2d674222b27eff9f80d14761fde2e8fe7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= Date: Fri, 21 Feb 2014 16:08:28 +0200 Subject: [PATCH] kms_flip: Fail the subtest if page flip hang recovery wasn't actually tested MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Context banning can prevent the page flip hang tests from actaully testing anything, so make the relevant subtests fail in that case. Signed-off-by: Ville Syrjälä --- tests/kms_flip.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/kms_flip.c b/tests/kms_flip.c index b06933c8..bb105c81 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -922,6 +922,9 @@ static unsigned int run_test_step(struct test_output *o) if (hang) unhang_gpu(drm_fd, hang); + igt_assert_f(!(do_flip && (o->flags & TEST_HANG)) || hang, + "failed to exercise page flip hang recovery\n"); + return completed_events; }