[PATCH i-g-t v3] tests/kms_invalid_mode: Add igt_info when test skips

sumit kishore
2026-04-01T10:15:51Z

From: Sumit Kishore <sumit.kishore@intel.com>

Add igt_info to print the reason for test skip,
when an invalid mode is requested on eDP display.

v2: Update commit title and description.
Add igt_info message.

Signed-off-by: Sumit Kishore <sumit.kishore@intel.com>
---
tests/kms_invalid_mode.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/kms_invalid_mode.c b/tests/kms_invalid_mode.c
index 5edffb649..1a4563153 100644
--- a/tests/kms_invalid_mode.c
+++ b/tests/kms_invalid_mode.c
@@ -136,8 +136,10 @@ adjust_mode_clock_too_high(data_t *data, drmModeModeInfoPtr mode)
* roughly match the user will get. For now skip the
* test on any connector with a fixed mode.
*/
- if (has_scaling_mode_prop(data))
+ if (has_scaling_mode_prop(data)) {
+ igt_info("Skipping as %s has scaling properties\n", data->output->name);
return false;
+ }

/*
* Newer platforms can support modes higher than the maximum dot clock
--
2.43.0