summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeevan B <jeevan.b@intel.com>2022-06-03 12:08:36 +0530
committerKarthik B S <karthik.b.s@intel.com>2022-06-06 14:06:08 +0530
commit24bad3ce51c57c907307f84aa9202d04b80ad2a3 (patch)
tree9c24e6f8fe599b4f0eb73c86697ac1544006ef93
parentdf7f206e45fe9affd7ed69045cb7f418e85d67ef (diff)
tests/kms_flip: skip test if compatible mode is not found
skip test if the compatible mode is not found instead of forcing the first connector mode on to the other connector. Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/4190 Signed-off-by: Jeevan B <jeevan.b@intel.com> Reviewed-by: Karthik B S <karthik.b.s@intel.com>
-rwxr-xr-xtests/kms_flip.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index 5985e012..c5b5741a 100755
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -950,8 +950,7 @@ static void get_compatible_modes(drmModeModeInfo *a, drmModeModeInfo *b,
}
}
- /* hope for the best! */
- *a = *b = c1->modes[0];
+ igt_skip("Compatible mode not found.\n");
}
return;