From: Hans de Goede Date: Tue, 24 Jun 2014 14:23:12 +0000 (+0200) Subject: test: Prefix litest created device names with litest X-Git-Tag: 0.4.0~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c4778f891a77e06c0fccbfad1a1bfd4f64f86f3;p=platform%2Fupstream%2Flibinput.git 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 --- 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);