test/alloc: add zpos-2x-fail

This commit is contained in:
Simon Ser 2021-12-14 17:02:30 +01:00
parent 28d074e5ab
commit ee8a85a5df
2 changed files with 20 additions and 0 deletions

View file

@ -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',

View file

@ -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 = {