diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2014-02-21 16:08:28 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2014-02-21 16:19:12 +0200 |
commit | 5f190f2d674222b27eff9f80d14761fde2e8fe7a (patch) | |
tree | 68a1fc35425a252fecaf91919619325bf8bd00a6 | |
parent | 48ba2cdf969698a2520193ec0c9cff99f89fe1f6 (diff) |
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>
-rw-r--r-- | tests/kms_flip.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/kms_flip.c b/tests/kms_flip.c index b06933c8b..bb105c818 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; } |