test: add missing plane alpha prop to prop@ignore-alpha

The plane would otherwise not be selected because it's missing the alpha prop.
This commit is contained in:
Simon Ser 2020-12-05 18:34:37 +01:00
parent 40411f6d3e
commit 92fbebbe88
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -137,6 +137,10 @@ static int test_ignore_alpha(void)
mock_plane = liftoff_mock_drm_create_plane(DRM_PLANE_TYPE_PRIMARY); mock_plane = liftoff_mock_drm_create_plane(DRM_PLANE_TYPE_PRIMARY);
drmModePropertyRes prop = {0};
strncpy(prop.name, "alpha", sizeof(prop.name) - 1);
liftoff_mock_plane_add_property(mock_plane, &prop);
drm_fd = liftoff_mock_drm_open(); drm_fd = liftoff_mock_drm_open();
device = liftoff_device_create(drm_fd); device = liftoff_device_create(drm_fd);
assert(device != NULL); assert(device != NULL);