diff options
author | Rabin Vincent <rabin@rab.in> | 2014-10-29 23:21:41 +0100 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-11-07 16:27:06 -0500 |
commit | 2302b3ab85843c9a8dbb3a924030659d87a23349 (patch) | |
tree | ad20b1650d4c2911831cedcfe59770d372ecf169 /test/command_ut.c | |
parent | 128059b926b3c34bbb364dcacd8d0511ff906be8 (diff) | |
download | u-boot-2302b3ab85843c9a8dbb3a924030659d87a23349.tar.gz u-boot-2302b3ab85843c9a8dbb3a924030659d87a23349.tar.bz2 u-boot-2302b3ab85843c9a8dbb3a924030659d87a23349.zip |
hush: make run_command() return an error on parsing failure
run_command() returns success even if the command had a syntax error;
correct this behaviour.
Signed-off-by: Rabin Vincent <rabin@rab.in>
Acked-by: Simon Glass <sjg@chromium.org)
Diffstat (limited to 'test/command_ut.c')
-rw-r--r-- | test/command_ut.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/command_ut.c b/test/command_ut.c index a4f034179b..926573a395 100644 --- a/test/command_ut.c +++ b/test/command_ut.c @@ -191,6 +191,8 @@ static int do_ut_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) assert(run_command("", 0) == 0); assert(run_command(" ", 0) == 0); + assert(run_command("'", 0) == 1); + printf("%s: Everything went swimmingly\n", __func__); return 0; } |