mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-18 21:36:27 +00:00
kms_force_connector_basic: Add force-load-detect test
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
0e388f409a
commit
7670e286f5
@ -52,6 +52,8 @@ static void reset_connectors(void)
|
||||
|
||||
drmModeFreeConnector(connector);
|
||||
}
|
||||
|
||||
igt_set_module_param_int("load_detect_test", 0);
|
||||
}
|
||||
|
||||
static int opt_handler(int opt, int opt_index, void *data)
|
||||
@ -108,6 +110,21 @@ int main(int argc, char **argv)
|
||||
igt_skip_on(vga_connector->connection == DRM_MODE_CONNECTED);
|
||||
}
|
||||
|
||||
igt_subtest("force-load-detect") {
|
||||
igt_set_module_param_int("load_detect_test", 1);
|
||||
|
||||
/* This can't use drmModeGetConnectorCurrent
|
||||
* because connector probing is the point of this test.
|
||||
*/
|
||||
temp = drmModeGetConnector(drm_fd, vga_connector->connector_id);
|
||||
|
||||
igt_set_module_param_int("load_detect_test", 0);
|
||||
|
||||
igt_assert(temp->connection != DRM_MODE_UNKNOWNCONNECTION);
|
||||
|
||||
drmModeFreeConnector(temp);
|
||||
}
|
||||
|
||||
igt_subtest("force-connector-state") {
|
||||
igt_display_t display;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user