From 776c55f636d80dcd6b9318c6a0961fa0da8427e6 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 1 Feb 2017 13:11:23 +1000 Subject: [PATCH] test: fix tablet tool_id test to fail on unexpected ids Found by coverity Signed-off-by: Peter Hutterer --- test/test-tablet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test-tablet.c b/test/test-tablet.c index 7fc4c587..6bfffa05 100644 --- a/test/test-tablet.c +++ b/test/test-tablet.c @@ -1922,6 +1922,8 @@ START_TEST(tool_id) case 0x333: /* Cintiq 13HD */ tool_id = 2083; break; + default: + ck_abort(); } ck_assert(tool_id == libinput_tablet_tool_get_tool_id(tool));