[PATCH libinput 3/5] test: fix pointer accel defaults test

Peter Hutterer peter.hutterer at who-t.net
Fri Jan 6 06:30:20 UTC 2017


Loop immediately exited, this code was never triggered.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 test/pointer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/pointer.c b/test/pointer.c
index e0cd064..f4663db 100644
--- a/test/pointer.c
+++ b/test/pointer.c
@@ -1062,7 +1062,7 @@ START_TEST(pointer_accel_defaults)
 				    speed);
 	}
 
-	for (speed = 1.2; speed <= -2.0; speed += 0.2) {
+	for (speed = 1.2; speed <= 2.0; speed += 0.2) {
 		status = libinput_device_config_accel_set_speed(device,
 								speed);
 		ck_assert_int_eq(status,
-- 
2.9.3



More information about the wayland-devel mailing list