From 6c4778f891a77e06c0fccbfad1a1bfd4f64f86f3 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Tue, 24 Jun 2014 16:23:12 +0200 Subject: [PATCH] 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 Reviewed-by: Peter Hutterer Signed-off-by: Peter Hutterer --- test/50-litest.conf | 6 ++++++ test/litest.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 test/50-litest.conf diff --git a/test/50-litest.conf b/test/50-litest.conf new file mode 100644 index 00000000..76579d77 --- /dev/null +++ b/test/50-litest.conf @@ -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 diff --git a/test/litest.c b/test/litest.c index 320a26d6..02f3d77b 100644 --- a/test/litest.c +++ b/test/litest.c @@ -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); -- 2.34.1