mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2025-01-19 10:26:29 +01:00
test: add empty test
Make sure calling apply() with no layer works as expected.
This commit is contained in:
parent
49b4f46762
commit
e09ebdac27
2 changed files with 5 additions and 0 deletions
|
@ -24,6 +24,7 @@ bench_exe = executable(
|
|||
tests = {
|
||||
'alloc': [
|
||||
'basic',
|
||||
'empty',
|
||||
'simple-1x',
|
||||
'simple-1x-fail',
|
||||
'simple-3x',
|
||||
|
|
|
@ -62,6 +62,9 @@ static const size_t test_setup_len = sizeof(test_setup) / sizeof(test_setup[0]);
|
|||
&test_setup[3] }
|
||||
|
||||
static struct test_case tests[] = {
|
||||
{
|
||||
.name = "empty",
|
||||
},
|
||||
{
|
||||
.name = "simple-1x-fail",
|
||||
.layers = {
|
||||
|
@ -631,6 +634,7 @@ static void run_test(struct test_layer *test_layers)
|
|||
}
|
||||
assert(ok);
|
||||
|
||||
liftoff_output_destroy(output);
|
||||
liftoff_device_destroy(device);
|
||||
close(drm_fd);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue