test: add empty test

Make sure calling apply() with no layer works as expected.
This commit is contained in:
Simon Ser 2019-11-29 10:57:24 +01:00
parent 49b4f46762
commit e09ebdac27
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 5 additions and 0 deletions

View file

@ -24,6 +24,7 @@ bench_exe = executable(
tests = {
'alloc': [
'basic',
'empty',
'simple-1x',
'simple-1x-fail',
'simple-3x',

View file

@ -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);
}