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:
Robert Mader 2025-12-19 18:59:51 +01:00
parent 9364282ebd
commit 6389c1ce55
2 changed files with 12 additions and 0 deletions

View file

@ -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);

View file

@ -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);