From 4d9b25b234a54bad5e7eabfa2ca48aa1f2a64918 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 18 Mar 2024 12:15:41 +1000 Subject: [PATCH] test: force the apple magicmouse to 1000dpi Part-of: --- test/litest-device-apple-magicmouse.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/test/litest-device-apple-magicmouse.c b/test/litest-device-apple-magicmouse.c index fa8e3f25..5cc5865b 100644 --- a/test/litest-device-apple-magicmouse.c +++ b/test/litest-device-apple-magicmouse.c @@ -92,16 +92,11 @@ TEST_DEVICE("magicmouse", .events = events, .absinfo = absinfo, - /* Force MOUSE_DPI to the empty string. As of systemd commit f013e99e160f - * ID_BUS=bluetooth now triggers the hwdb entry for this device. This causes - * test case failures because deltas change. Detecting old vs new systemd is - * hard, and because our rules are 99-prefixed we can't set ID_BUS ourselves - * on older systemd. - * So let's go the easy way and unset MOUSE_DPI so we can continue to use - * the current tests. - */ + /* Force MOUSE_DPI to 1000. systemd commit f013e99e160f says it's 1300 + * but our test were written with different assumptions and it's not worth + * re-writing those, so let's assume the default */ .udev_properties = { - { "MOUSE_DPI", "" }, + { "MOUSE_DPI", "1000" }, { NULL }, }, )