summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu27@gmail.com>2017-01-27 17:30:29 +0100
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2017-02-07 14:25:27 +0200
commit4f3cad78285fca473b4a108aa5276fc08addee56 (patch)
tree41c464d195e80b75749f1518dcebd31fcd132a92 /tests
parente7c6aa6af4b0800807f053f3b780a443e5b04423 (diff)
downloadweston-4f3cad78285fca473b4a108aa5276fc08addee56.tar.gz
weston-4f3cad78285fca473b4a108aa5276fc08addee56.tar.bz2
weston-4f3cad78285fca473b4a108aa5276fc08addee56.zip
compositor: damage pending subsurfaces when committing them
When a client changes the subsurfaces state, we need to damage them so the result is visible. We do that by flagging the surfaces when the state changes and causing damage when committing the state. This prevents normal repaints from considering these changes until a commit has happened, and allows the client to atomically schedule several changes. This fixes the subsurface_z_order test, which is now marked as expected to succeed. Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Micah Fedke <micah.fedke@collabora.co.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/subsurface-shot-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/subsurface-shot-test.c b/tests/subsurface-shot-test.c
index 8e4f7c19..10415ec7 100644
--- a/tests/subsurface-shot-test.c
+++ b/tests/subsurface-shot-test.c
@@ -174,7 +174,7 @@ surface_commit_color(struct client *client, struct wl_surface *surface,
return buf;
}
-FAIL_TEST(subsurface_z_order)
+TEST(subsurface_z_order)
{
const char *test_name = get_test_name();
struct client *client;