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: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1161>
This commit is contained in:
Peter Hutterer 2025-03-14 13:33:45 +10:00
parent 3f232131a1
commit 4d1b836e22

View file

@ -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