From ee8a85a5df9e983909a2de25739547c547958cbc 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 1aef05c..64ee5aa 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 f1571ce..fbd4595 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 = NULL, + }, + }, + }, { .name = "zpos-3x", .layers = {