mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 00:00:09 +01:00
tests: color-representation: Skip dmabuf test if not supported
For systems where udmabuf is not available.
Fixes: 75d75ac6c (tests: Add color-representation tests for DRM and GL)
Signed-off-by: Robert Mader <robert.mader@collabora.com>
This commit is contained in:
parent
9364282ebd
commit
6389c1ce55
2 changed files with 12 additions and 0 deletions
|
|
@ -265,6 +265,12 @@ test_color_representation(const struct color_state *color_state,
|
|||
struct buffer *screenshot;
|
||||
bool match;
|
||||
|
||||
if (buffer_type == CLIENT_BUFFER_TYPE_DMABUF &&
|
||||
!client_buffer_util_is_dmabuf_supported()) {
|
||||
testlog("%s: Skipped: udmabuf not supported\n", get_test_name());
|
||||
return RESULT_SKIP;
|
||||
}
|
||||
|
||||
xdg_client = create_xdg_client();
|
||||
client = xdg_client->client;
|
||||
xdg_surface = create_xdg_surface(xdg_client);
|
||||
|
|
|
|||
|
|
@ -164,6 +164,12 @@ TEST(drm_color_representation_reuse_buffer)
|
|||
struct rectangle clip = { .width = 128, .height = 128 };
|
||||
bool match;
|
||||
|
||||
if (args->buffer_type == CLIENT_BUFFER_TYPE_DMABUF &&
|
||||
!client_buffer_util_is_dmabuf_supported()) {
|
||||
testlog("%s: Skipped: udmabuf not supported\n", get_test_name());
|
||||
return RESULT_SKIP;
|
||||
}
|
||||
|
||||
xdg_client = create_xdg_client();
|
||||
client = xdg_client->client;
|
||||
xdg_surface = create_xdg_surface(xdg_client);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue