From 69b75410de021a8beec340c28a9d9f222cb6e53f Mon Sep 17 00:00:00 2001 From: "Koushik K. Dutta" Date: Tue, 23 Feb 2010 18:07:31 -0800 Subject: [PATCH] do not check the results of a run_program if script asserts are disabled --- commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.c b/commands.c index e6fb9be..a60366f 100644 --- a/commands.c +++ b/commands.c @@ -397,7 +397,7 @@ cmd_run_program(const char *name, void *cookie, int argc, const char *argv[], int status; waitpid(pid, &status, 0); - if (WIFEXITED(status) && WEXITSTATUS(status) == 0) { + if (WIFEXITED(status) && WEXITSTATUS(status) == 0 || !script_assert_enabled) { return 0; } else { LOGE("Error in %s\n(Status %d)\n", path, status);