lib: allow the edid to be reset

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
Thomas Wood
2014-07-09 10:38:05 +01:00
parent eef768f283
commit b81020526f
2 changed files with 13 additions and 1 deletions
+7
View File
@@ -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);