The getWheelButton function's signature was changed, but the tests were not updated to reflect this.
Signed-off-by: Jason Gerecke <killert...@gmail.com> --- test/wacom-tests.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/test/wacom-tests.c b/test/wacom-tests.c index a42927e..3f47b2d 100644 --- a/test/wacom-tests.c +++ b/test/wacom-tests.c @@ -82,30 +82,24 @@ static void test_get_wheel_button(void) { int delta; - int button_up, button_dn, action_up, action_dn; + unsigned int action_up, action_dn; - button_up = 100; - button_dn = 200; action_up = 300; action_dn = 400; for (delta = -32; delta <= 32; delta++) { - int *action; - int result = getWheelButton(delta, button_up, button_dn, &action_up, &action_dn, &action); + unsigned int *action = getWheelButton(delta, &action_up, &action_dn); if (delta < 0) { - assert(result == button_dn); assert(action == &action_dn); } else if (delta == 0) { - assert(result == 0); assert(action == NULL); } else { - assert(result == button_up); assert(action == &action_up); } } -- 1.7.12 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel