From d6943b94c75f34334dbab32bb49cf8940e8bd66c Mon Sep 17 00:00:00 2001 From: Jakub Tyszkowski Date: Tue, 15 Jul 2014 10:24:51 +0200 Subject: [PATCH] android/tester-ng: Fix for not checking callback count in step If no callback count was set in the step, test passed despite valid properties still waiting to be verified. --- android/tester-main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/android/tester-main.c b/android/tester-main.c index 8a1f6eda8..f5bcb1ce8 100644 --- a/android/tester-main.c +++ b/android/tester-main.c @@ -376,6 +376,14 @@ static int verify_property(bt_property_t *exp_props, int exp_num_props, } } + if ((i == 0) && exp_props) { + tester_warn("No property was verified: %s", exp_num_props ? + "unknown error!" : + "wrong \'.callback_result.num_properties\'?"); + + return 1; + } + return exp_prop_to_find; } -- 2.47.3