diff options
author | Pekka Paalanen <pekka.paalanen@collabora.com> | 2021-03-01 11:31:59 +0200 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.com> | 2021-03-12 16:14:28 +0200 |
commit | f1fb48ed28b97006bc4e872812fd46a83e1998fe (patch) | |
tree | 01984bb0b5d82d7c918dea4b11370de1e69c76a1 | |
parent | 19d31dd4c3b38913bd1af8373e3decc9a1d3384c (diff) | |
download | weston-f1fb48ed28b97006bc4e872812fd46a83e1998fe.tar.gz |
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 <pekka.paalanen@collabora.com>
-rw-r--r-- | tests/output-damage-test.c | 4 |
1 files changed, 4 insertions, 0 deletions
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"), |