test: widen litest to use doubles for scaled variables
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 18 Jul 2014 06:01:10 +0000 (16:01 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Sun, 20 Jul 2014 22:56:10 +0000 (08:56 +1000)
commit489630f58b2ac099bf235efc5dfd9cd854c223ee
tree4840469c42593b74d74cc0a3deee14720cfbaafa
parent8665e3678ab07b7071c70d75b137e0528be70e84
test: widen litest to use doubles for scaled variables

Using a 0-100% range is useful but in some cases we need events with finer
than 1% granularity.

And fix up the two-finger test that now fails. This was a bug in the test
anyway, the dx/dy supplied here was 1% of the touchpad width. Confined to
integers this meant we only ever had the touch down, then the single move by
1%. That caused two events - not enough to satisfy tp_estimate_delta, so we
always had a delta of 0/0 regardless of the size of the move.

Now with doubles this fails, so drop it to 0.1% instead, which is small enough
on all touchpads we currently have.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
test/litest-int.h
test/litest.c
test/litest.h
test/touchpad.c