From 56683b109866fa0a8df46b68b3d52ff3a536d14c Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 3 Feb 2015 16:42:29 +0100 Subject: [PATCH] tests: Fix listing/deleting with more than one reader We were always reading the information for reader 0. --- tests/delete.c | 2 +- tests/list.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/delete.c b/tests/delete.c index bf3336c..b72d3ca 100644 --- a/tests/delete.c +++ b/tests/delete.c @@ -95,7 +95,7 @@ static void process_devices(char **argv) guint j; DBusGProxy *dev; - path = g_ptr_array_index(devices, 0); + path = g_ptr_array_index(devices, i); g_print("Using device %s\n", path); /* FIXME use for_name_owner?? */ diff --git a/tests/list.c b/tests/list.c index a7f2f48..9f5285e 100644 --- a/tests/list.c +++ b/tests/list.c @@ -111,7 +111,7 @@ static void process_devices(char **argv) guint j; DBusGProxy *dev; - path = g_ptr_array_index(devices, 0); + path = g_ptr_array_index(devices, i); g_print("Using device %s\n", path); /* FIXME use for_name_owner?? */