do not check the results of a run_program if script asserts are disabled

This commit is contained in:
Koushik K. Dutta 2010-02-23 18:07:31 -08:00
parent 007439bef6
commit 69b75410de

View File

@ -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);