Re: [PATCH libinput v2] tests: Add negative test for libinput_device_keyboard_has_key()

2015-04-26 Thread Peter Hutterer
On Fri, Apr 24, 2015 at 05:21:18PM -0500, Derek Foreman wrote: > Ensure we get a -1 return for non-keyboard devices. > > Signed-off-by: Derek Foreman merged, thanks, though I did a minor change to it to make the line wrapping nicer: + for (code = 0; code < KEY_CNT; code++) { +

[PATCH libinput v2] tests: Add negative test for libinput_device_keyboard_has_key()

2015-04-24 Thread Derek Foreman
Ensure we get a -1 return for non-keyboard devices. Signed-off-by: Derek Foreman --- test/keyboard.c | 17 + 1 file changed, 17 insertions(+) diff --git a/test/keyboard.c b/test/keyboard.c index a477cfb..cf56923 100644 --- a/test/keyboard.c +++ b/test/keyboard.c @@ -309,6 +309,2