When overriding events of a test device, if one would enable an event that was already enabled by default for the overridden device, an assert checking if the event was already enabled would fail and cause the test to fail.
Since the merging of the default and overriding event lists is implemented by simply concatinating them letting libevdev deal with ignoring superfluous event enabling, remove the assert to allow the implementation to work. Signed-off-by: Jonas Ådahl <[email protected]> --- test/litest.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/litest.c b/test/litest.c index 961b917..459eafe 100644 --- a/test/litest.c +++ b/test/litest.c @@ -879,8 +879,6 @@ litest_create_uinput_device_from_description(const char *name, if (type == INPUT_PROP_MAX) { rc = libevdev_enable_property(dev, code); } else { - if (type != EV_SYN) - ck_assert(!libevdev_has_event_code(dev, type, code)); rc = libevdev_enable_event_code(dev, type, code, type == EV_ABS ? &default_abs : NULL); } -- 1.8.5.1 _______________________________________________ wayland-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/wayland-devel
