summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranay Samala <pranay.samala@intel.com>2024-11-14 08:47:53 +0530
committerSwati Sharma <swati2.sharma@intel.com>2024-11-14 13:08:28 +0530
commit35f458a276912f4da92d61b33b4f62f046ec9e33 (patch)
treef99a18c08b54b8508dfc180c62327103f5716248
parent0ef4ed507eb5e0f87ace6a5fa108ab56d5dfb125 (diff)
tests/kms_3d: Add more logs to skips/failure
Having some logs for test failures and skips would make debugging much easier. v2: Remove CRTC log for fail/skip (Bhanu) v3: Add check for connector connection v4: Remove check for connector connection (Bhanu) v5: Rebasing and sending other version v6: Remove igt_info for connector support (Bhanu) Signed-off-by: Pranay Samala <pranay.samala@intel.com> Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
-rw-r--r--tests/kms_3d.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/kms_3d.c b/tests/kms_3d.c
index ad6c45e9b..8e9e9929c 100644
--- a/tests/kms_3d.c
+++ b/tests/kms_3d.c
@@ -55,7 +55,8 @@ igt_simple_main
res = drmModeGetResources(drm_fd);
igt_require(res);
- igt_assert(drmSetClientCap(drm_fd, DRM_CLIENT_CAP_STEREO_3D, 1) >= 0);
+ igt_assert_f(drmSetClientCap(drm_fd, DRM_CLIENT_CAP_STEREO_3D, 1) >= 0,
+ "Failed to enable STEREO_3D capability.\n");
/* find an hdmi connector */
for (int i = 0; i < res->count_connectors; i++) {
@@ -65,7 +66,7 @@ igt_simple_main
drmModeFreeConnector(connector);
connector = NULL;
}
- igt_require(connector);
+ igt_require_f(connector, "No HDMI connector found.\n");
kmstest_unset_all_crtcs(drm_fd, res);
@@ -85,7 +86,7 @@ igt_simple_main
mode_count++;
}
- igt_assert(mode_count);
+ igt_assert_f(mode_count, "3D modes not detected.\n");
/* set 3D modes */
igt_info("Testing:\n");