From 9f3048ebdbf97a3858c7d164006fd1e41a337355 Mon Sep 17 00:00:00 2001 From: Jakub Tyszkowski Date: Tue, 15 Jul 2014 10:24:53 +0200 Subject: [PATCH] android/tester-ng: Verify action results also for success case Case when we were expecting fail as action result but we got success was not caught. --- android/tester-main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/android/tester-main.c b/android/tester-main.c index f5bcb1ce8..5bafc0ecd 100644 --- a/android/tester-main.c +++ b/android/tester-main.c @@ -404,8 +404,7 @@ static bool match_data(struct step *step) return false; } - if (exp->action_result.status && (exp->action_result.status != - step->action_result.status)) { + if (exp->action_result.status != step->action_result.status) { tester_debug("Action status don't match"); return false; } -- 2.47.3