test: check the pad button state in litest_is_pad_button_event
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 16 Jan 2017 04:51:19 +0000 (14:51 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 20 Jan 2017 00:35:45 +0000 (10:35 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/litest.c

index d3598f4e469033f0c797c0ed4bd81191ddc4c0ea..10993d9f405b0c47eaff1f6ab6c6517e03edf875 100644 (file)
@@ -2768,6 +2768,8 @@ litest_is_pad_button_event(struct libinput_event *event,
 
        litest_assert_int_eq(libinput_event_tablet_pad_get_button_number(p),
                             button);
+       litest_assert_int_eq(libinput_event_tablet_pad_get_button_state(p),
+                            state);
 
        return p;
 }