test: abort when no default value is available for an axis
authorJason Gerecke <jason.gerecke@wacom.com>
Wed, 10 Apr 2019 19:41:40 +0000 (12:41 -0700)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 11 Apr 2019 07:50:09 +0000 (17:50 +1000)
commit657842093c63066d91b8f79210a4fec692be9f53
treec916a65f72a96f785e44147805589a7af38862dc
parent09e97a5231f76a5387be7b3b2c3bfb0c0f72f491
test: abort when no default value is available for an axis

And fix the cases where the default value isn't filled in correctly

Issue found because of the following ubsan error:
../src/evdev-tablet.c:182:19: runtime error: signed integer overflow: 0 - -214783648 cannot be represented in type 'int'

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/litest-device-wacom-bamboo-16fg-pen.c
test/litest-device-wacom-bamboo-2fg-pen.c
test/litest-device-wacom-cintiq-pro-16-pen.c
test/litest.c