summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2014-07-09 10:38:05 +0100
committerThomas Wood <thomas.wood@intel.com>2014-07-11 11:47:46 +0100
commitb81020526f1d08840f9ee87d31e958ddca4cce8a (patch)
treec9aad608ecee2fed8ace952c4857fffadfd63baf /tests
parenteef768f283466b6d7cb3f08381f72ccf3951dc99 (diff)
lib: allow the edid to be reset
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/kms_force_connector.c7
1 files changed, 7 insertions, 0 deletions
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);