From 5c88025105a0fa1014fc4cf73fe5a4b2e9f53a58 Mon Sep 17 00:00:00 2001 From: Jakub Tyszkowski Date: Fri, 25 Jul 2014 13:32:13 +0200 Subject: [PATCH] android/tester-ng: Fix treating callback as action step Next action step might pass before the action was even called. This was possible when not expected callback came. This patch forces check for callback also on the incomming step and not only on the expected one. --- android/tester-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/tester-main.c b/android/tester-main.c index 3206a54b7..42790b6af 100644 --- a/android/tester-main.c +++ b/android/tester-main.c @@ -413,7 +413,7 @@ static bool match_data(struct step *step) return false; } - if (exp->callback) { + if (exp->callback || step->callback) { if (exp->callback != step->callback) { tester_debug("Callback type don't match"); return false; -- 2.47.3