From f1fb48ed28b97006bc4e872812fd46a83e1998fe Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Mon, 1 Mar 2021 11:31:59 +0200 Subject: tests: let output damage skip without color ops If the compositor does not have the shadow buffer capability (implied by the color ops capability bit), then trying to run the shadow buffer test is useless, it would just fail. Let it skip instead. Fixes: b1e56143c5979161b4b12c1e1ad0e68c8fa8665e Signed-off-by: Pekka Paalanen --- tests/output-damage-test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/output-damage-test.c b/tests/output-damage-test.c index 03ee4dd1..7d26e027 100644 --- a/tests/output-damage-test.c +++ b/tests/output-damage-test.c @@ -141,6 +141,10 @@ fixture_setup(struct weston_test_harness *harness, const struct setup_args *arg) * that step. */ setup.test_quirks.gl_force_full_redraw_of_shadow_fb = true; + + /* To skip instead of fail the test if shadow not available */ + setup.test_quirks.required_capabilities = WESTON_CAP_COLOR_OPS; + weston_ini_setup(&setup, cfgln("[output]"), cfgln("name=headless"), -- cgit v1.2.1