mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-21 13:20:42 +01:00
test: fix compiler warning
test-tablet.c: In function ‘proximity_in_out’:
test-tablet.c:797:20: warning: increment of a boolean expression [-Wbool-operation]
have_tool_update++;
And tighten the test so we fail for multiple prox in events
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
d187ef44aa
commit
37397bb218
1 changed files with 2 additions and 1 deletions
|
|
@ -794,7 +794,8 @@ START_TEST(proximity_in_out)
|
|||
LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY) {
|
||||
struct libinput_tablet_tool * tool;
|
||||
|
||||
have_tool_update++;
|
||||
ck_assert(!have_tool_update);
|
||||
have_tool_update = true;
|
||||
tablet_event = libinput_event_get_tablet_tool_event(event);
|
||||
tool = libinput_event_tablet_tool_get_tool(tablet_event);
|
||||
ck_assert_int_eq(libinput_tablet_tool_get_type(tool),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue