From 4d1b836e229f0deb2fd090751adb89c7a931933b Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 14 Mar 2025 13:33:45 +1000 Subject: [PATCH] test: fix the tablet tool_ref test This was working on an assumption that there is only one ref of the tablet tool and if we call unref it will be removed. This assumption is not something we can guarantee in the public API so we shouldn't test for it. Part-of: --- test/test-tablet.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/test-tablet.c b/test/test-tablet.c index 8c61d1cf..cf9b3a83 100644 --- a/test/test-tablet.c +++ b/test/test-tablet.c @@ -2501,8 +2501,6 @@ START_TEST(tool_ref) litest_assert(tool == libinput_tablet_tool_ref(tool)); litest_assert(tool == libinput_tablet_tool_unref(tool)); libinput_event_destroy(event); - - litest_assert(libinput_tablet_tool_unref(tool) == NULL); } END_TEST