kms_flip: Fail the subtest if page flip hang recovery wasn't actually tested

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>
This commit is contained in:
Ville Syrjälä 2014-02-21 16:08:28 +02:00
parent 48ba2cdf96
commit 5f190f2d67

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