summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJason Gerecke <killertofu@gmail.com>2012-08-22 15:05:48 -0700
committerJason Gerecke <killertofu@gmail.com>2012-08-27 10:32:50 -0700
commit625a43c040fd71393be94fdfad6cf7faa49db775 (patch)
tree920368ec893abad89b9231ae5465975b71db6a3d /test
parentd8613ffc961be4c957ed30d4ac03e83411f835b6 (diff)
Make test_get_wheel_button happy
Apparently there is some subtle difference here between returning a pointer and using a double-pointer as an output parameter. Tracing through the function shows the former *should* be working, but for an unknown reason fails "assert(action == &action_dn)"... This patch shouldn't change any functionality -- it just shuts up `make distcheck`. Signed-off-by: Jason Gerecke <killertofu@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/wacom-tests.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/wacom-tests.c b/test/wacom-tests.c
index 3f47b2d..652977d 100644
--- a/test/wacom-tests.c
+++ b/test/wacom-tests.c
@@ -89,7 +89,8 @@ test_get_wheel_button(void)
for (delta = -32; delta <= 32; delta++)
{
- unsigned int *action = getWheelButton(delta, &action_up, &action_dn);
+ unsigned int *action;
+ getWheelButton(delta, &action_up, &action_dn, &action);
if (delta < 0)
{
assert(action == &action_dn);