[igt-dev] [i-g-t,2/2] tests/kms_invalid_mode.c: Test Cleanup

Nidhi Gupta nidhi1.gupta at intel.com
Mon Jun 20 09:10:52 UTC 2022


Sanitize the system state before starting the subtest.

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

diff --git a/tests/kms_invalid_mode.c b/tests/kms_invalid_mode.c
index 00de1150..1defa655 100644
--- a/tests/kms_invalid_mode.c
+++ b/tests/kms_invalid_mode.c
@@ -187,6 +187,8 @@ test_output(data_t *data)
 	int i, valid_connectors = 0;
 	uint32_t crtc_id;
 
+	igt_display_reset(&data->display);
+
 	/*
 	 * FIXME test every mode we have to be more
 	 * sure everything is really getting rejected?


More information about the igt-dev mailing list