mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-30 09:30:08 +01:00
test: Prefix litest created device names with litest
And add an example xorg.conf.d .conf file for ignoring these devices under xorg. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
8d6356e668
commit
6c4778f891
2 changed files with 9 additions and 1 deletions
6
test/50-litest.conf
Normal file
6
test/50-litest.conf
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Ignore devices created by libinput's test suite (litest)
|
||||
Section "InputClass"
|
||||
Identifier "libinput test suite blacklist"
|
||||
MatchProduct "litest"
|
||||
Option "Ignore" "on"
|
||||
EndSection
|
||||
|
|
@ -822,11 +822,13 @@ litest_create_uinput_device_from_description(const char *name,
|
|||
.flat = 0,
|
||||
.resolution = 100
|
||||
};
|
||||
char buf[512];
|
||||
|
||||
dev = libevdev_new();
|
||||
ck_assert(dev != NULL);
|
||||
|
||||
libevdev_set_name(dev, name);
|
||||
snprintf(buf, sizeof(buf), "litest %s", name);
|
||||
libevdev_set_name(dev, buf);
|
||||
if (id) {
|
||||
libevdev_set_id_bustype(dev, id->bustype);
|
||||
libevdev_set_id_vendor(dev, id->vendor);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue