summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNidhi Gupta <nidhi1.gupta@intel.com>2022-05-20 14:37:17 +0530
committerPetri Latvala <petri.latvala@intel.com>2022-05-20 12:11:59 +0300
commit14ad49f5b6ed861eda93e9d6b6ed0f3c77d228d1 (patch)
treed26e9eb98cf8efb7fa4c3d194f9c996fdb7f6f90
parent43e509f408d4a5bcc5070f6b84da42a7c3801e8d (diff)
tests/kms_concurrent: Skip the subtest if the resolution is not supported
The kms_concurrent is about testing mode setting with reducing the resolution and then again increasing it, for this the test will take the high resolution supported by the connector and then calculate the lowest resolution, if the calculated resolution is not supported by the connector it will assign the default resolution of 1024x 768 without checking. Added check to skip the subtest if the current mode is smaller than 1024 mode (igt_skip_on_f(mode_default->vdisplay < 1024)) becuase if the default resolution is greater then the highest resolution supported by the connector then the test should skip. Signed-off-by: Nidhi Gupta <nidhi1.gupta@intel.com> Reviewed-by: Karthik B S <karthik.b.s@intel.com>
-rw-r--r--tests/kms_concurrent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/kms_concurrent.c b/tests/kms_concurrent.c
index c334194b..d4536e3b 100644
--- a/tests/kms_concurrent.c
+++ b/tests/kms_concurrent.c
@@ -252,6 +252,7 @@ get_lowres_mode(data_t *data, const drmModeModeInfo *mode_default,
return igt_memdup(mode, sizeof(*mode));
}
+ igt_skip_on_f(mode_default->vdisplay < 1024, "No suitable resolution was found\n");
return igt_std_1024_mode_get(igt_output_preferred_vrefresh(output));
}