diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-05-04 12:44:25 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-05-04 12:45:23 +1000 |
commit | 37397bb2187b84eb52b64c377d01fec944ae8e58 (patch) | |
tree | 116d2dc708ef79bbb7a1a7fa20d696372f4f65a9 /test | |
parent | d187ef44aa4ff25f805bc4b87f6136fba47d89f5 (diff) |
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>
Diffstat (limited to 'test')
-rw-r--r-- | test/test-tablet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test-tablet.c b/test/test-tablet.c index 215a9f6..d61478f 100644 --- a/test/test-tablet.c +++ b/test/test-tablet.c @@ -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), |