From 37397bb2187b84eb52b64c377d01fec944ae8e58 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 4 May 2017 12:44:25 +1000 Subject: test: fix compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- test/test-tablet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') 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), -- cgit v1.2.3