diff options
author | Thomas Wood <thomas.wood@intel.com> | 2014-07-09 10:38:05 +0100 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2014-07-11 11:47:46 +0100 |
commit | b81020526f1d08840f9ee87d31e958ddca4cce8a (patch) | |
tree | c9aad608ecee2fed8ace952c4857fffadfd63baf /tests | |
parent | eef768f283466b6d7cb3f08381f72ccf3951dc99 (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.c | 7 |
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); |