[PATCH libinput 4/8] test: Don't fail when events are enabled multiple times
Jonas Ådahl
jadahl at gmail.com
Wed Jul 16 13:39:09 PDT 2014
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 <jadahl at gmail.com>
---
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
More information about the wayland-devel
mailing list