[PATCH libevdev 1/3] test: change device for enabling/disabling bits to use REL_*
Peter Hutterer
peter.hutterer at who-t.net
Thu Aug 8 23:40:53 PDT 2013
No real effect on the test, this check is just so that a follow-up patch to
fix the tests for the new uinput backend is a bit easier to review.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
test/test-libevdev-has-event.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/test-libevdev-has-event.c b/test/test-libevdev-has-event.c
index 5ce1271..f96bbc3 100644
--- a/test/test-libevdev-has-event.c
+++ b/test/test-libevdev-has-event.c
@@ -415,7 +415,7 @@ START_TEST(test_device_name)
ck_assert_int_eq(strlen(str), 0);
rc = uinput_device_new_with_events(&uidev, TEST_DEVICE_NAME, &ids,
- EV_ABS, ABS_X,
+ EV_REL, REL_X,
-1);
ck_assert_msg(rc == 0, "Failed to create uinput device: %s", strerror(-rc));
rc = libevdev_set_fd(dev, uinput_device_get_fd(uidev));
@@ -468,7 +468,7 @@ START_TEST(test_device_set_name)
ck_assert_int_eq(strcmp(str, "the uniq"), 0);
rc = uinput_device_new_with_events(&uidev, TEST_DEVICE_NAME, &ids,
- EV_ABS, ABS_X,
+ EV_REL, REL_X,
-1);
ck_assert_msg(rc == 0, "Failed to create uinput device: %s", strerror(-rc));
rc = libevdev_set_fd(dev, uinput_device_get_fd(uidev));
@@ -508,7 +508,7 @@ START_TEST(test_device_set_ids)
ck_assert_int_eq(libevdev_get_id_version(dev), 40);
rc = uinput_device_new_with_events(&uidev, TEST_DEVICE_NAME, &ids,
- EV_ABS, ABS_X,
+ EV_REL, REL_X,
-1);
ck_assert_msg(rc == 0, "Failed to create uinput device: %s", strerror(-rc));
rc = libevdev_set_fd(dev, uinput_device_get_fd(uidev));
--
1.8.2.1
More information about the Input-tools
mailing list