[igt-dev] [2/2] tests/kms_invalid_mode: sanitize the system state between subtests

Nidhi Gupta nidhi1.gupta at intel.com
Fri Jun 17 04:15:47 UTC 2022


Before running the subtest we need to sanitize the system state
to default, since we can't trust the state of previous subtest, used
igt_display_reset() to sanitize the state.

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

diff --git a/tests/kms_invalid_mode.c b/tests/kms_invalid_mode.c
index bb524037..8115f7fd 100644
--- a/tests/kms_invalid_mode.c
+++ b/tests/kms_invalid_mode.c
@@ -222,6 +222,7 @@ test_output(data_t *data)
 
 static void test(data_t *data)
 {
+	igt_display_reset(&data->display);
 	int valid_connectors = 0;
 
 	for_each_connected_output(&data->display, data->output) {


More information about the igt-dev mailing list