summaryrefslogtreecommitdiff
path: root/tests/kms_plane.c
diff options
context:
space:
mode:
authorFeceoru, Gabriel <gabriel.feceoru@intel.com>2016-02-26 14:59:03 +0200
committerMarius Vlad <marius.c.vlad@intel.com>2016-05-04 13:23:55 +0300
commit8adb5a07f2a3c7eadd9704b83692f72070ef946c (patch)
treed842674c3246d308c56240cfb95cfd9ec77fdfa3 /tests/kms_plane.c
parent26bec97c21bbff761231e350dfea47f1a02e2e99 (diff)
tests/kms_plane: Skip the test when configuration couldn't be applied
This could happen when the selected pipe cannot be used with the connected port due do HW constrains. v2: Apply review comment (Marius) bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=86763 Signed-off-by: Gabriel Feceoru <gabriel.feceoru@intel.com> Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
Diffstat (limited to 'tests/kms_plane.c')
-rw-r--r--tests/kms_plane.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/kms_plane.c b/tests/kms_plane.c
index d8bb4841..60b8d71d 100644
--- a/tests/kms_plane.c
+++ b/tests/kms_plane.c
@@ -68,6 +68,7 @@ test_grab_crc(data_t *data, igt_output_t *output, enum pipe pipe,
drmModeModeInfo *mode;
igt_plane_t *primary;
char *crc_str;
+ int ret;
igt_output_set_pipe(output, pipe);
@@ -81,7 +82,8 @@ test_grab_crc(data_t *data, igt_output_t *output, enum pipe pipe,
&fb);
igt_plane_set_fb(primary, &fb);
- igt_display_commit(&data->display);
+ ret = igt_display_try_commit2(&data->display, COMMIT_LEGACY);
+ igt_skip_on(ret != 0);
igt_pipe_crc_collect_crc(data->pipe_crc, crc);