mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2026-01-01 03:30:09 +01:00
test: change device for enabling/disabling bits to use REL_*
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@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
parent
c962cd6675
commit
55191e0502
1 changed files with 3 additions and 3 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue