test: Return values from the asserts compatible with cmds
authorJoe Hershberger <joe.hershberger@ni.com>
Wed, 20 May 2015 19:27:34 +0000 (14:27 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 21 May 2015 13:16:18 +0000 (09:16 -0400)
commitfe3f6a65fef8d2f7f388f3a584e02dad54ff72a7
tree55352c7ccf48aaecc7a5f5e9ed197f3112cec79e
parent09129bec8e1f2cd89d48b3ae98dcd83707d5e606
test: Return values from the asserts compatible with cmds

The asserts are sometimes called from the context of the test command
itself so make sure that a return that happens as a result of a failure
is compatible with that command return. When called within a test, the
return value is ignored.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/test/ut.h