mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2024-11-16 19:47:55 +01:00
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:
parent
40411f6d3e
commit
92fbebbe88
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue