From b81020526f1d08840f9ee87d31e958ddca4cce8a Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Wed, 9 Jul 2014 10:38:05 +0100 Subject: lib: allow the edid to be reset Signed-off-by: Thomas Wood --- tests/kms_force_connector.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/kms_force_connector.c b/tests/kms_force_connector.c index 54a92c5f..39cacb93 100644 --- a/tests/kms_force_connector.c +++ b/tests/kms_force_connector.c @@ -93,6 +93,13 @@ main (int argc, char **argv) drmModeFreeConnector(temp); + /* remove edid */ + kmstest_force_edid(drm_fd, connector, NULL, 0); + temp = drmModeGetConnector(drm_fd, connector->connector_id); + /* the connector should now have the 5 default modes */ + igt_assert(temp->count_modes == 5); + drmModeFreeConnector(temp); + /* force the connector off */ kmstest_force_connector(drm_fd, connector, FORCE_CONNECTOR_OFF); temp = drmModeGetConnector(drm_fd, connector->connector_id); -- cgit v1.2.3