Commit 37397bb2 authored by Peter Hutterer's avatar Peter Hutterer

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]

And tighten the test so we fail for multiple prox in events
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <>
parent d187ef44
...@@ -794,7 +794,8 @@ START_TEST(proximity_in_out) ...@@ -794,7 +794,8 @@ START_TEST(proximity_in_out)
struct libinput_tablet_tool * tool; 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); tablet_event = libinput_event_get_tablet_tool_event(event);
tool = libinput_event_tablet_tool_get_tool(tablet_event); tool = libinput_event_tablet_tool_get_tool(tablet_event);
ck_assert_int_eq(libinput_tablet_tool_get_type(tool), ck_assert_int_eq(libinput_tablet_tool_get_type(tool),
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment