[igt-dev] [PATCH 2/2] tests/i915/kms_draw_crc: Test Cleanup

Nidhi Gupta nidhi1.gupta at intel.com
Fri Jun 10 04:31:31 UTC 2022


Sanitize the system state before starting the subtest.

Signed-off-by: Nidhi Gupta <nidhi1.gupta at intel.com>
---
 tests/i915/kms_draw_crc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/i915/kms_draw_crc.c b/tests/i915/kms_draw_crc.c
index 3e68479e..1c87e523 100644
--- a/tests/i915/kms_draw_crc.c
+++ b/tests/i915/kms_draw_crc.c
@@ -265,6 +265,7 @@ static void setup_environment(void)
 	drm_fd = drm_open_driver_master(DRIVER_INTEL);
 	igt_require(drm_fd >= 0);
 
+	igt_display_reset(display);
 	drm_res = drmModeGetResources(drm_fd);
 	igt_require(drm_res);
 	igt_assert(drm_res->count_connectors <= MAX_CONNECTORS);
-- 
2.26.2



More information about the igt-dev mailing list