diff options
author | Jason Gerecke <killertofu@gmail.com> | 2012-08-22 11:30:14 -0700 |
---|---|---|
committer | Jason Gerecke <killertofu@gmail.com> | 2012-08-27 10:31:27 -0700 |
commit | d8613ffc961be4c957ed30d4ac03e83411f835b6 (patch) | |
tree | cda4e4708fd3945996acc532b22ad067eebc9530 /test | |
parent | ac17300d842f2842eff3a2b2aa3dbac7ebf88a2b (diff) |
Update test to match new function signature
The getWheelButton function's signature was changed in commit 40ecdcb5
but the tests were not updated to reflect this.
Signed-off-by: Jason Gerecke <killertofu@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/wacom-tests.c | 10 |
1 files 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); } } |