[igt-dev] [PATCH i-g-t] tests/i915/kms_busy: Test Cleanup

Nidhi Gupta nidhi1.gupta at intel.com
Fri Aug 26 03:33:46 UTC 2022


Sanitize the display state before starting
the new subtest.

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

diff --git a/tests/i915/kms_busy.c b/tests/i915/kms_busy.c
index 99a07c2a..3c3221e9 100644
--- a/tests/i915/kms_busy.c
+++ b/tests/i915/kms_busy.c
@@ -345,6 +345,8 @@ igt_main_args("e", NULL, help_str, opt_handler, NULL)
 		igt_require(gem_has_ring(fd, I915_EXEC_DEFAULT));
 
 		kmstest_set_vt_graphics_mode();
+		igt_display_reset(&data.master.display);
+		igt_display_commit(&data.master.display);
 		igt_display_require(&display, fd);
 		igt_display_require_output(&display);
 
-- 
2.36.0



More information about the igt-dev mailing list