kms_flip: Fail the subtest if page flip hang recovery wasn't actually tested
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 21 Feb 2014 14:08:28 +0000 (16:08 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 21 Feb 2014 14:19:12 +0000 (16:19 +0200)
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ä <ville.syrjala@linux.intel.com>
tests/kms_flip.c

index b06933c..bb105c8 100644 (file)
@@ -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;
 }