From 2e1dd93b60224e77f6a49ad8fb36d184e3a9a3bc Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 14 Dec 2021 17:02:30 +0100 Subject: [PATCH] test/alloc: add zpos-2x-fail --- test/meson.build | 1 + test/test_alloc.c | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/test/meson.build b/test/meson.build index aca43c7..059ffcd 100644 --- a/test/meson.build +++ b/test/meson.build @@ -30,6 +30,7 @@ tests = { 'simple-1x', 'simple-1x-fail', 'simple-3x', + 'zpos-2x-fail', 'zpos-3x', 'zpos-3x-intersect-fail', 'zpos-3x-intersect-partial', diff --git a/test/test_alloc.c b/test/test_alloc.c index be277cf..cda2add 100644 --- a/test/test_alloc.c +++ b/test/test_alloc.c @@ -123,6 +123,25 @@ static struct test_case tests[] = { }, }, }, + { + .name = "zpos-2x-fail", + .layers = { + { + .width = 100, + .height = 100, + .zpos = 1, + .compat = { CURSOR_PLANE }, + .result = NULL, + }, + { + .width = 1920, + .height = 1080, + .zpos = 2, + .compat = { PRIMARY_PLANE }, + .result = PRIMARY_PLANE, + }, + }, + }, { .name = "zpos-3x", .layers = {