summaryrefslogtreecommitdiff
path: root/test/litest-device-keyboard-all-codes.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2019-03-22 15:44:32 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2019-03-22 16:23:17 +1000
commit11adaadd51eb384e2931cba4768030f7020df935 (patch)
tree88221c0c79df722b56cc4a46a4722777c67b628b /test/litest-device-keyboard-all-codes.c
parent5a041de7a6a720d78fd877d5ffd31e6b7e413a77 (diff)
downloadlibinput-11adaadd51eb384e2931cba4768030f7020df935.tar.gz
test: let the device custom create method return a bool
This is so we can tell litest to create the device anyway, useful for when all we have to do in the custom create is allocate some memory. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test/litest-device-keyboard-all-codes.c')
-rw-r--r--test/litest-device-keyboard-all-codes.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/litest-device-keyboard-all-codes.c b/test/litest-device-keyboard-all-codes.c
index 268cff79..3f5d0d4a 100644
--- a/test/litest-device-keyboard-all-codes.c
+++ b/test/litest-device-keyboard-all-codes.c
@@ -28,7 +28,7 @@
#define NAME "All event codes keyboard"
-static void all_codes_create(struct litest_device *d);
+static bool all_codes_create(struct litest_device *d);
static struct input_id input_id = {
.bustype = 0x11,
@@ -48,7 +48,7 @@ TEST_DEVICE("keyboard-all-codes",
.absinfo = NULL,
)
-static void
+static bool
all_codes_create(struct litest_device *d)
{
int events[KEY_MAX * 2 + 2];
@@ -70,4 +70,5 @@ all_codes_create(struct litest_device *d)
&input_id,
NULL,
events);
+ return false;
}