- drmModeConnector connectors[] = {
- CONNECTOR(CONNECTOR_ID(0), ENCODER_ID(0), &ENCODER_ID(0), 1),
- CONNECTOR(CONNECTOR_ID(1), ENCODER_ID(1), &ENCODER_ID(1), 1),
- };
-
- drmModeEncoder encoders[] = {
- ENCODER(ENCODER_ID(0), CRTC_ID(0), 0x1),
- ENCODER(ENCODER_ID(1), CRTC_ID(1), 0x2),
- };
-
- drmModePlane planes[] = {
- PLANE(PLANE_ID(0), 0x2),
- PLANE(PLANE_ID(1), 0x1),
- PLANE(PLANE_ID(2), 0x2),
- };
-
- setup_test_device_layout(connectors, encoders, planes);
-
- struct lm *lm = lm_create(TEST_DRM_DEVICE);
- ck_assert_ptr_ne(lm, NULL);
-
- struct lease_handle **handles;
- ck_assert_int_eq(out_cnt, lm_get_lease_handles(lm, &handles));
- ck_assert_ptr_ne(handles, NULL);