diff --git a/android/tester-main.c b/android/tester-main.c
index 152459d..a8a7bd3 100644
--- a/android/tester-main.c
+++ b/android/tester-main.c
int i, j;
int exp_prop_to_find = exp_num_props;
+ if (rec_num_props == 0)
+ return 1;
+
+ if (exp_num_props == 0) {
+ tester_debug("Wrong number of expected properties given");
+ tester_test_failed();
+ return 1;
+ }
+
/* Get first exp prop to match and search for it */
for (i = 0; i < exp_num_props; i++) {
for (j = 0; j < rec_num_props; j++) {
}
}
- 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;
}