From c830f51b2e1e4fa37d9ec3849d2807c139ebef05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 8 Apr 2016 15:51:28 +0800 Subject: [PATCH] test-pointer: Test that the default accel profile doesn't change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make sure that changing the accel profile doesn't affect the default accel profile. Signed-off-by: Jonas Ã…dahl Signed-off-by: Peter Hutterer --- test/pointer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/pointer.c b/test/pointer.c index 32e3fd2e..a34740a2 100644 --- a/test/pointer.c +++ b/test/pointer.c @@ -1079,6 +1079,9 @@ START_TEST(pointer_accel_profile_defaults) profile = libinput_device_config_accel_get_profile(device); ck_assert_int_eq(profile, LIBINPUT_CONFIG_ACCEL_PROFILE_FLAT); + profile = libinput_device_config_accel_get_default_profile(device); + ck_assert_int_eq(profile, LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE); + status = libinput_device_config_accel_set_profile(device, LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE); ck_assert_int_eq(status, LIBINPUT_CONFIG_STATUS_SUCCESS);