diff options
author | Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> | 2017-02-21 15:32:14 +0200 |
---|---|---|
committer | Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> | 2017-02-21 16:44:58 +0200 |
commit | 4a9259230847d9756ab964205d350dfb8dcf508b (patch) | |
tree | 9227d1d8d33f19f9f5d6d1208db3e03ee8c6a1e1 /tests/kms_frontbuffer_tracking.c | |
parent | 2210c5b0b82ed207fde1d88afc5596a8d386fcae (diff) |
kms_frontbuffer_tracking: Fix badstride test skipping with atomic
In the new atomic reality, the page flip in the end of the badstride
test succeeds. That flip is to an fb which has a stride too large to
allow FBC to be enabled. Adjust the test expectations accordingly.
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Diffstat (limited to 'tests/kms_frontbuffer_tracking.c')
-rw-r--r-- | tests/kms_frontbuffer_tracking.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c index 4f4848bc..6d13e5dc 100644 --- a/tests/kms_frontbuffer_tracking.c +++ b/tests/kms_frontbuffer_tracking.c @@ -3031,7 +3031,7 @@ static void badstride_subtest(const struct test_mode *t) */ rc = drmModePageFlip(drm.fd, params->crtc_id, wide_fb.fb_id, 0, NULL); igt_assert(rc == -EINVAL || rc == 0); - do_assertions(0); + do_assertions(rc == 0 ? ASSERT_FBC_DISABLED : 0); igt_remove_fb(drm.fd, &wide_fb); } |