summaryrefslogtreecommitdiff
path: root/test/litest-device-gpio-keys.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-05-24 11:56:24 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2018-06-08 14:37:22 +1000
commit639ed0b641749dc836d5808e4f189b032701b904 (patch)
treeceb74afcf6ce155ed680f3506234535a3b8c3429 /test/litest-device-gpio-keys.c
parent33341ddd20103f0ac447ec4beabe17463af89ca9 (diff)
downloadlibinput-639ed0b641749dc836d5808e4f189b032701b904.tar.gz
Switch from udev property parsing to the quirks system
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test/litest-device-gpio-keys.c')
-rw-r--r--test/litest-device-gpio-keys.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/litest-device-gpio-keys.c b/test/litest-device-gpio-keys.c
index 67993912..ee226de1 100644
--- a/test/litest-device-gpio-keys.c
+++ b/test/litest-device-gpio-keys.c
@@ -47,11 +47,15 @@ static const char udev_rule[] =
"KERNEL!=\"event*\", GOTO=\"switch_end\"\n"
"\n"
"ATTRS{name}==\"litest gpio-keys*\",\\\n"
-" ENV{ID_INPUT_SWITCH}=\"1\",\\\n"
-" ENV{LIBINPUT_ATTR_LID_SWITCH_RELIABILITY}=\"reliable\"\n"
+" ENV{ID_INPUT_SWITCH}=\"1\"\n"
"\n"
"LABEL=\"switch_end\"";
+static const char quirk_file[] =
+"[litest gpio quirk]\n"
+"MatchName=litest gpio-keys\n"
+"AttrLidSwitchReliability=reliable\n";
+
TEST_DEVICE("gpio-keys",
.type = LITEST_GPIO_KEYS,
.features = LITEST_SWITCH,
@@ -63,4 +67,5 @@ TEST_DEVICE("gpio-keys",
.absinfo = NULL,
.udev_rule = udev_rule,
+ .quirk_file = quirk_file,
)